diff options
author | NavaL <mnandri@thoughtworks.com> | 2016-01-07 18:12:50 +0100 |
---|---|---|
committer | NavaL <mnandri@thoughtworks.com> | 2016-01-11 16:56:29 +0100 |
commit | f07aa46453a311010dad3218689891f91f76e3fc (patch) | |
tree | f17a21831c3d54ce629adfaf5ac7b55e5c1d7725 /service/test/unit/resources/test_attachments_resource.py | |
parent | e10e43968e2a4a8ef3ef84fd7ff7e741af5e40b0 (diff) |
matching POST response and GET of an attachment -- API specification
Issue #548
Diffstat (limited to 'service/test/unit/resources/test_attachments_resource.py')
-rw-r--r-- | service/test/unit/resources/test_attachments_resource.py | 2 |
1 files changed, 1 insertions, 1 deletions
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') |