summaryrefslogtreecommitdiff
path: root/service/test/unit/resources/test_attachments_resource.py
diff options
context:
space:
mode:
authorBruno Wagner <bwagner@riseup.net>2015-12-23 11:56:52 -0200
committerBruno Wagner <bwagner@riseup.net>2015-12-23 11:56:52 -0200
commitaf90d1679a02ad58175b8070cbdfb46666a1dcfc (patch)
treec290e57d2c5f49409f47a6ca327e029ae4810dd1 /service/test/unit/resources/test_attachments_resource.py
parent9e8d0172a2835043026277c955dfdb2ae0877bb8 (diff)
Changed test not to test fixed content, but the existence of an error message
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 c44dab84..d536144f 100644
--- a/service/test/unit/resources/test_attachments_resource.py
+++ b/service/test/unit/resources/test_attachments_resource.py
@@ -61,7 +61,7 @@ class AttachmentsResourceTest(unittest.TestCase):
def assert_response(_):
self.assertEqual(500, request.code)
self.assertFalse('Location' in request.headers)
- self.assertEqual({"message": "Something went wrong. Attachement not saved."}, json.loads(request.written[0]))
+ self.assertIn("message", json.loads(request.written[0]))
verify(self.mail_service).save_attachment('some mocked value', 'some mocked type')
d.addCallback(assert_response)