summaryrefslogtreecommitdiff
path: root/service/test/unit/resources/test_attachments_resource.py
diff options
context:
space:
mode:
authorNavaL <mnandri@thoughtworks.com>2016-01-07 15:39:34 +0100
committerNavaL <mnandri@thoughtworks.com>2016-01-11 16:56:29 +0100
commite10e43968e2a4a8ef3ef84fd7ff7e741af5e40b0 (patch)
tree1275f5e88dc13baf035fe96b94158ab3258901cb /service/test/unit/resources/test_attachments_resource.py
parent0e39a9a95ba273545950c5db7f92132dd8b95395 (diff)
renamed attachment_id attribute to ident on POST response, to conform with the GET attachment API
Issue #548
Diffstat (limited to 'service/test/unit/resources/test_attachments_resource.py')
-rw-r--r--service/test/unit/resources/test_attachments_resource.py2
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 d536144f..b12d9e4b 100644
--- a/service/test/unit/resources/test_attachments_resource.py
+++ b/service/test/unit/resources/test_attachments_resource.py
@@ -36,7 +36,7 @@ class AttachmentsResourceTest(unittest.TestCase):
def assert_response(_):
self.assertEqual(201, request.code)
self.assertEqual('/attachment/%s' % attachment_id, request.headers['Location'])
- response_json = {'attachment_id': attachment_id, 'content-type': 'some mocked type',
+ response_json = {'ident': attachment_id, 'content-type': 'some mocked type',
'filename': 'filename.txt', 'filesize': 17}
self.assertEqual(response_json, json.loads(request.written[0]))
verify(self.mail_service).save_attachment('some mocked value', 'some mocked type')