From 061f5447dafd303dd15641ea20ac848cb5415e66 Mon Sep 17 00:00:00 2001 From: howardlee Date: Fri, 21 Oct 2016 16:21:13 +0800 Subject: [PATCH] [TrivialFix] Replace 'assertTrue(a in b)' with 'assertIn(a, b)' Change-Id: Ie7e037eaf2274cfb2f9f0700027f2c6f2071b16a --- oslo_vmware/tests/test_pbm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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':