[TrivialFix] Replace 'assertTrue(a in b)' with 'assertIn(a, b)'

Change-Id: Ie7e037eaf2274cfb2f9f0700027f2c6f2071b16a
This commit is contained in:
howardlee 2016-10-21 16:21:13 +08:00
parent 15f0089946
commit 061f5447da

View File

@ -37,8 +37,7 @@ class PBMUtilityTest(base.TestCase):
def invoke_api_side_effect(module, method, *args, **kwargs):
self.assertEqual(session.pbm, module)
self.assertTrue(method in ['PbmQueryProfile',
'PbmRetrieveContent'])
self.assertIn(method, ['PbmQueryProfile', 'PbmRetrieveContent'])
self.assertEqual(session.pbm.service_content.profileManager,
args[0])
if method == 'PbmQueryProfile':