Browse Source

Update test_attachment.py

pull/6/head
Mathias Markl 7 years ago
committed by GitHub
parent
commit
5f7d077f04
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      muk_attachment_lobject/tests/test_attachment.py

12
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))
Loading…
Cancel
Save