Replace 'assertTrue(a in b)' with 'assertIn(a, b)'
trivialfix Change-Id: Iaf6fc3b4b68d764de38856cab54d27579565310f
This commit is contained in:
parent
0f6c03703d
commit
da65768aba
@ -46,7 +46,7 @@ class CrudMixin(object):
|
||||
def assertList(self, expected, actual):
|
||||
self.assertEqual(len(expected), len(actual))
|
||||
for i in expected:
|
||||
self.assertTrue(i in actual)
|
||||
self.assertIn(i, actual)
|
||||
|
||||
|
||||
class APIV1TestCase(base.APITestCase):
|
||||
|
@ -46,7 +46,7 @@ class CrudMixin(object):
|
||||
def assertList(self, expected, actual):
|
||||
self.assertEqual(len(expected), len(actual))
|
||||
for i in expected:
|
||||
self.assertTrue(i in actual)
|
||||
self.assertIn(i, actual)
|
||||
|
||||
|
||||
class APIV2TestCase(base.APITestCase):
|
||||
|
Loading…
x
Reference in New Issue
Block a user