From 651568ff85bde4aa152ba18eed8b587f4f2f3cab Mon Sep 17 00:00:00 2001 From: NavaL Date: Mon, 21 Dec 2015 10:44:37 +0100 Subject: added filename and size to the attachment endpoint post response Issue #548 --- service/test/integration/test_retrieve_attachment.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'service/test/integration/test_retrieve_attachment.py') 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])) -- cgit v1.2.3