From 6baedb96561c349b71a9e0e7cdd816f6d8a0a3fb Mon Sep 17 00:00:00 2001 From: Cady_Chen Date: Mon, 24 Oct 2016 10:53:24 +0800 Subject: [PATCH] [TrivialFix] Replace 'assertTrue(a in b)' with 'assertIn(a, b)' Change-Id: Ib0245deb33585e874724921df2b59639a6445e39 --- neutron/tests/functional/agent/test_ovs_flows.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/tests/functional/agent/test_ovs_flows.py b/neutron/tests/functional/agent/test_ovs_flows.py index e3fb3a9c575..48e323064f8 100644 --- a/neutron/tests/functional/agent/test_ovs_flows.py +++ b/neutron/tests/functional/agent/test_ovs_flows.py @@ -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'