Don't access mock's attribute directly especially when it's not needed

Change-Id: I0df2f7110301c096762396fb23e49a081d051f3b
This commit is contained in:
Eugene Nikanorov 2015-06-29 05:45:24 +04:00 committed by enikanorov
parent c24c3f4c90
commit b21a88603e

View File

@ -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")