diff options
Diffstat (limited to 'keystoneclient')
-rw-r--r-- | keystoneclient/tests/unit/apiclient/test_exceptions.py | 2 | ||||
-rw-r--r-- | keystoneclient/tests/unit/test_http.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/keystoneclient/tests/unit/apiclient/test_exceptions.py b/keystoneclient/tests/unit/apiclient/test_exceptions.py index 4a803c7..ddf8d98 100644 --- a/keystoneclient/tests/unit/apiclient/test_exceptions.py +++ b/keystoneclient/tests/unit/apiclient/test_exceptions.py @@ -40,7 +40,7 @@ class ExceptionsArgsTest(utils.TestCase): method, url) self.assertIsInstance(ex, ex_cls) - self.assertEqual(ex.message, json_data["error"]["message"]) + self.assertIn(json_data["error"]["message"], ex.message) self.assertEqual(ex.details, json_data["error"]["details"]) self.assertEqual(ex.method, method) self.assertEqual(ex.url, url) diff --git a/keystoneclient/tests/unit/test_http.py b/keystoneclient/tests/unit/test_http.py index 6e0070a..0282f1a 100644 --- a/keystoneclient/tests/unit/test_http.py +++ b/keystoneclient/tests/unit/test_http.py @@ -97,7 +97,7 @@ class ClientTest(utils.TestCase): cl.get('/hi') except exceptions.BadRequest as exc: exc_raised = True - self.assertEqual(exc.message, "Error message string") + self.assertEqual(exc.message, "Error message string (HTTP 400)") self.assertTrue(exc_raised, 'Exception not raised.') def test_post(self): |