diff --git a/test/unit/common/middleware/test_keystoneauth.py b/test/unit/common/middleware/test_keystoneauth.py index 388e7955b8..90fbffdaf3 100644 --- a/test/unit/common/middleware/test_keystoneauth.py +++ b/test/unit/common/middleware/test_keystoneauth.py @@ -623,7 +623,7 @@ class TestAuthorize(BaseTestAuthorize): elif exception: self.assertEqual(result.status_int, exception) else: - self.assertTrue(result is None) + self.assertIsNone(result) return req def test_authorize_fails_for_unauthorized_user(self):