Mathias Markl
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
8 additions and
4 deletions
-
muk_attachment_lobject/tests/test_attachment.py
|
@ -78,7 +78,11 @@ class AttachmentTestCase(common.HttpCase): |
|
|
'name': "Test", |
|
|
'name': "Test", |
|
|
'datas': base64.b64encode(b"\xff data")}) |
|
|
'datas': base64.b64encode(b"\xff data")}) |
|
|
self.authenticate('admin', 'admin') |
|
|
self.authenticate('admin', 'admin') |
|
|
url = "/web/lobject/%s" % attach.id |
|
|
|
|
|
_logger.info(url) |
|
|
|
|
|
_logger.info(self.url_open(url)) |
|
|
|
|
|
self.assertTrue(self.url_open(url)) |
|
|
|
|
|
|
|
|
url = "/web/lobject |
|
|
|
|
|
params = {'id': attach.id} |
|
|
|
|
|
url_parts = list(urlparse(url)) |
|
|
|
|
|
query = dict(parse_qsl(url_parts[4])) |
|
|
|
|
|
query.update(params) |
|
|
|
|
|
url_parts[4] = urlencode(query) |
|
|
|
|
|
url = urlunparse(url_parts) |
|
|
|
|
|
self.assertTrue(self.url_open(url)) |