From: Eugene Nikanorov Date: Mon, 29 Jun 2015 01:45:24 +0000 (+0400) Subject: Don't access mock's attribute directly especially when it's not needed X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=b21a88603e369a113c8b73c3aebc05fedf8da9d3;p=openstack-build%2Fneutron-build.git Don't access mock's attribute directly especially when it's not needed Change-Id: I0df2f7110301c096762396fb23e49a081d051f3b --- diff --git a/neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_neutron_agent.py b/neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_neutron_agent.py index b3ab4fa3e..34fa8bbcd 100644 --- a/neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_neutron_agent.py +++ b/neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_neutron_agent.py @@ -668,7 +668,6 @@ class TestOvsNeutronAgent(object): self.agent.local_vlan_map["netuid12345"] = lvm self.agent.port_unbound("vif1", "netuid12345") self.assertTrue(reclvl_fn.called) - reclvl_fn.called = False lvm.vif_ports = {} self.agent.port_unbound("vif1", "netuid12345")