Replace 'assertTrue(a in b)' with 'assertIn(a, b)'

trivialfix

Change-Id: Iaf6fc3b4b68d764de38856cab54d27579565310f
This commit is contained in:
Cao Xuan Hoang 2016-09-28 13:51:17 +07:00
parent 0f6c03703d
commit da65768aba
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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):