From f07aa46453a311010dad3218689891f91f76e3fc Mon Sep 17 00:00:00 2001 From: NavaL Date: Thu, 7 Jan 2016 18:12:50 +0100 Subject: matching POST response and GET of an attachment -- API specification Issue #548 --- service/test/integration/test_retrieve_attachment.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'service/test/integration') 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])) -- cgit v1.2.3