diff --git a/tests/test_exc.py b/tests/test_exc.py index 77457cee..d5105bcb 100644 --- a/tests/test_exc.py +++ b/tests/test_exc.py @@ -26,4 +26,4 @@ class TestHTTPExceptions(testtools.TestCase): def test_from_response(self): """exc.from_response should return instance of an HTTP exception.""" out = exc.from_response(FakeResponse(400)) - self.assertTrue(isinstance(out, exc.HTTPBadRequest)) + self.assertIsInstance(out, exc.HTTPBadRequest)