From fb078631556cfc50fc39728aebabddf18bf4179e Mon Sep 17 00:00:00 2001 From: Sachin Patil Date: Sat, 26 Aug 2017 17:36:56 +0530 Subject: [PATCH] Small readability change to test_keystoneauth Changed assertTrue to assertIsNone for better readability Change-Id: Ibc83c32ccfb5165abf897a15cf2692414a7f95c3 Signed-off-by: Sachin Patil --- test/unit/common/middleware/test_keystoneauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/common/middleware/test_keystoneauth.py b/test/unit/common/middleware/test_keystoneauth.py index e8f29b5719..4d37e434f1 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):