Replace 'assertFalse(a in b)' with 'assertNotIn(a, b)'
Trivial fix. Change-Id: I818245eaa9e63322b1c6de049368aa4e09b01b4b
This commit is contained in:
parent
982274c25d
commit
626bfff17f
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue