Replace 'assertFalse(a in b)' with 'assertNotIn(a, b)'

Trivial fix.

Change-Id: Ie89f2bd03822cb76ee09d1d91284e7d356f5e5c5
This commit is contained in:
sunyandi 2018-01-19 19:21:47 +08:00
parent 1be7cb1087
commit 84f950f6db

View File

@ -33,7 +33,7 @@ class UUIDUtilsTest(test_base.BaseTestCase):
uuid_string = uuidutils.generate_uuid(dashed=False)
self.assertIsInstance(uuid_string, str)
self.assertEqual(len(uuid_string), 32)
self.assertFalse('-' in uuid_string)
self.assertNotIn('-', uuid_string)
def test_is_uuid_like(self):
self.assertTrue(uuidutils.is_uuid_like(str(uuid.uuid4())))