From af90d1679a02ad58175b8070cbdfb46666a1dcfc Mon Sep 17 00:00:00 2001 From: Bruno Wagner Date: Wed, 23 Dec 2015 11:56:52 -0200 Subject: Changed test not to test fixed content, but the existence of an error message --- service/test/unit/resources/test_attachments_resource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service') 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) -- cgit v1.2.3