[TrivialFix] Replace 'assertTrue(a in b)' with 'assertIn(a, b)'
Change-Id: Ie7e037eaf2274cfb2f9f0700027f2c6f2071b16a
This commit is contained in:
parent
15f0089946
commit
061f5447da
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user