tests: kill a bunch of unneeded mocks in l2pop unit tests

Those tests pass just fine without them.

Change-Id: Ic18666a9c332244bc31da547806c7afcdc4504c8
This commit is contained in:
Ihar Hrachyshka 2017-07-12 12:38:03 -07:00
parent d37f0652b9
commit b88d0a80a6

View File

@ -1118,7 +1118,6 @@ class TestL2PopulationRpcTestCase(test_plugin.Ml2PluginV2TestCase):
self.driver.get_network(
self.context, port['port']['network_id']),
models.PortBinding(), bindings)
mock.patch.object(port_context, '_expand_segment').start()
# The point is to provide coverage and to assert that no exceptions
# are raised.
l2pop_mech.delete_port_postcommit(port_context)
@ -1147,7 +1146,6 @@ class TestL2PopulationRpcTestCase(test_plugin.Ml2PluginV2TestCase):
self.driver.get_network(
self.context, p['port']['network_id']),
models.PortBinding(), bindings)
mock.patch.object(port_context, '_expand_segment').start()
# The point is to provide coverage and to assert that
# no exceptions are raised.
l2pop_mech.delete_port_postcommit(port_context)