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/unit/resources/test_attachments_resource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service/test/unit/resources/test_attachments_resource.py') diff --git a/service/test/unit/resources/test_attachments_resource.py b/service/test/unit/resources/test_attachments_resource.py index b12d9e4b..d7a35351 100644 --- a/service/test/unit/resources/test_attachments_resource.py +++ b/service/test/unit/resources/test_attachments_resource.py @@ -37,7 +37,7 @@ class AttachmentsResourceTest(unittest.TestCase): self.assertEqual(201, request.code) self.assertEqual('/attachment/%s' % attachment_id, request.headers['Location']) response_json = {'ident': attachment_id, 'content-type': 'some mocked type', - 'filename': 'filename.txt', 'filesize': 17} + 'name': 'filename.txt', 'size': 17, 'encoding': 'base64'} self.assertEqual(response_json, json.loads(request.written[0])) verify(self.mail_service).save_attachment('some mocked value', 'some mocked type') -- cgit v1.2.3