diff --git a/oslo_vmware/tests/test_pbm.py b/oslo_vmware/tests/test_pbm.py index c41a9a73..bc05f7e7 100644 --- a/oslo_vmware/tests/test_pbm.py +++ b/oslo_vmware/tests/test_pbm.py @@ -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':