diff options
author | NavaL <mnandri@thoughtworks.com> | 2015-12-21 10:44:37 +0100 |
---|---|---|
committer | NavaL <mnandri@thoughtworks.com> | 2015-12-21 11:00:14 +0100 |
commit | 651568ff85bde4aa152ba18eed8b587f4f2f3cab (patch) | |
tree | 732b92a3de4bf74ac710d314b7e622a60f94b04e /service/test/integration | |
parent | 4e7679766932e3d29914607f0db64ef8613b22b7 (diff) |
added filename and size to the attachment endpoint post response
Issue #548
Diffstat (limited to 'service/test/integration')
-rw-r--r-- | service/test/integration/test_retrieve_attachment.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/service/test/integration/test_retrieve_attachment.py b/service/test/integration/test_retrieve_attachment.py index b6010666..0998e688 100644 --- a/service/test/integration/test_retrieve_attachment.py +++ b/service/test/integration/test_retrieve_attachment.py @@ -67,4 +67,8 @@ class RetrieveAttachmentTest(SoledadTestBase): self.assertEqual(201, req.code) self.assertEqual('/attachment/B5B4ED80AC3B894523D72E375DACAA2FC6606C18EDF680FE95903086C8B5E14A', req.headers['Location']) - self.assertEqual({'attachment_id': 'B5B4ED80AC3B894523D72E375DACAA2FC6606C18EDF680FE95903086C8B5E14A'}, json.loads(req.written[0])) + response_json = {'attachment_id': 'B5B4ED80AC3B894523D72E375DACAA2FC6606C18EDF680FE95903086C8B5E14A', + 'content-type': content_type, + 'filename': filename, + 'filesize': len(data)} + self.assertEqual(response_json, json.loads(req.written[0])) |