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

Change-Id: Ib0245deb33585e874724921df2b59639a6445e39
This commit is contained in:
Cady_Chen 2016-10-24 10:53:24 +08:00 committed by chenyingnan
parent 2b9d9e3b9e
commit 6baedb9656
1 changed files with 2 additions and 2 deletions

View File

@ -362,8 +362,8 @@ class OVSFlowTestCase(OVSAgentTestBase):
"nw_proto=1,nw_tos=0,nw_ttl=128,"
"icmp_type=8,icmp_code=0,dl_vlan=%(lvid)d"
% kwargs)
self.assertTrue(("dl_vlan=%(segmentation_id)d" % kwargs) in
trace["Final flow"])
self.assertIn("dl_vlan=%(segmentation_id)d" % kwargs,
trace["Final flow"])
def test_install_dvr_to_src_mac(self):
other_dvr_mac = 'fa:16:3f:01:de:ad'