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

This commit is contained in:
Jenkins
2016-11-01 12:27:25 +00:00
committed by Gerrit Code Review

View File

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