summaryrefslogtreecommitdiff
path: root/service/test/integration
diff options
context:
space:
mode:
authorNavaL <mnandri@thoughtworks.com>2016-01-07 18:12:50 +0100
committerNavaL <mnandri@thoughtworks.com>2016-01-11 16:56:29 +0100
commitf07aa46453a311010dad3218689891f91f76e3fc (patch)
treef17a21831c3d54ce629adfaf5ac7b55e5c1d7725 /service/test/integration
parente10e43968e2a4a8ef3ef84fd7ff7e741af5e40b0 (diff)
matching POST response and GET of an attachment -- API specification
Issue #548
Diffstat (limited to 'service/test/integration')
-rw-r--r--service/test/integration/test_retrieve_attachment.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/service/test/integration/test_retrieve_attachment.py b/service/test/integration/test_retrieve_attachment.py
index acb23409..7de03c59 100644
--- a/service/test/integration/test_retrieve_attachment.py
+++ b/service/test/integration/test_retrieve_attachment.py
@@ -69,6 +69,7 @@ class RetrieveAttachmentTest(SoledadTestBase):
self.assertEqual('/attachment/B5B4ED80AC3B894523D72E375DACAA2FC6606C18EDF680FE95903086C8B5E14A', req.headers['Location'])
response_json = {'ident': 'B5B4ED80AC3B894523D72E375DACAA2FC6606C18EDF680FE95903086C8B5E14A',
'content-type': content_type,
- 'filename': filename,
- 'filesize': len(data)}
+ 'name': filename,
+ 'size': len(data),
+ 'encoding': 'base64'}
self.assertEqual(response_json, json.loads(req.written[0]))