diff options
author | howardlee <lihongweibj@inspur.com> | 2016-11-18 10:56:54 +0800 |
---|---|---|
committer | howardlee <lihongweibj@inspur.com> | 2016-11-18 10:56:54 +0800 |
commit | 626bfff17f3b491eb32d0eddd320970df0d81078 (patch) | |
tree | 98fbe63078230c3a2c24701be927c4ea53cb31ab /keystoneclient/tests | |
parent | 982274c25dda0b58fb7ae5a15b1ceb3b70b305d3 (diff) | |
download | python-keystoneclient-626bfff17f3b491eb32d0eddd320970df0d81078.tar.gz |
Replace 'assertFalse(a in b)' with 'assertNotIn(a, b)'
Trivial fix.
Change-Id: I818245eaa9e63322b1c6de049368aa4e09b01b4b
Diffstat (limited to 'keystoneclient/tests')
-rw-r--r-- | keystoneclient/tests/unit/v2_0/test_auth.py | 4 | ||||
-rw-r--r-- | keystoneclient/tests/unit/v3/test_auth.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/keystoneclient/tests/unit/v2_0/test_auth.py b/keystoneclient/tests/unit/v2_0/test_auth.py index f9512f6..64f2ea0 100644 --- a/keystoneclient/tests/unit/v2_0/test_auth.py +++ b/keystoneclient/tests/unit/v2_0/test_auth.py @@ -149,7 +149,7 @@ class AuthenticateAgainstKeystoneTests(utils.TestCase): auth_url=self.TEST_URL) self.assertEqual(cs.auth_token, self.TEST_RESPONSE_DICT["access"]["token"]["id"]) - self.assertFalse('serviceCatalog' in cs.service_catalog.catalog) + self.assertNotIn('serviceCatalog', cs.service_catalog.catalog) self.assertRequestBodyIs(json=self.TEST_REQUEST_BODY) def test_auth_url_token_authentication(self): @@ -222,7 +222,7 @@ class AuthenticateAgainstKeystoneTests(utils.TestCase): auth_url=self.TEST_URL) self.assertEqual(cs.auth_token, self.TEST_RESPONSE_DICT["access"]["token"]["id"]) - self.assertFalse('serviceCatalog' in cs.service_catalog.catalog) + self.assertNotIn('serviceCatalog', cs.service_catalog.catalog) self.assertRequestBodyIs(json=self.TEST_REQUEST_BODY) def test_allow_override_of_auth_token(self): diff --git a/keystoneclient/tests/unit/v3/test_auth.py b/keystoneclient/tests/unit/v3/test_auth.py index f719905..6549080 100644 --- a/keystoneclient/tests/unit/v3/test_auth.py +++ b/keystoneclient/tests/unit/v3/test_auth.py @@ -222,7 +222,7 @@ class AuthenticateAgainstKeystoneTests(utils.TestCase): auth_url=self.TEST_URL) self.assertEqual(cs.auth_token, self.TEST_RESPONSE_HEADERS["X-Subject-Token"]) - self.assertFalse('catalog' in cs.service_catalog.catalog) + self.assertNotIn('catalog', cs.service_catalog.catalog) self.assertRequestBodyIs(json=self.TEST_REQUEST_BODY) def test_auth_url_token_authentication(self): @@ -325,7 +325,7 @@ class AuthenticateAgainstKeystoneTests(utils.TestCase): auth_url=self.TEST_URL) self.assertEqual(cs.auth_token, self.TEST_RESPONSE_HEADERS["X-Subject-Token"]) - self.assertFalse('catalog' in cs.service_catalog.catalog) + self.assertNotIn('catalog', cs.service_catalog.catalog) self.assertRequestBodyIs(json=self.TEST_REQUEST_BODY) def test_allow_override_of_auth_token(self): |