Merge "tests: kill a bunch of unneeded mocks in l2pop unit tests"
This commit is contained in:
commit
fa4e148b06
@ -1118,7 +1118,6 @@ class TestL2PopulationRpcTestCase(test_plugin.Ml2PluginV2TestCase):
|
|||||||
self.driver.get_network(
|
self.driver.get_network(
|
||||||
self.context, port['port']['network_id']),
|
self.context, port['port']['network_id']),
|
||||||
models.PortBinding(), bindings)
|
models.PortBinding(), bindings)
|
||||||
mock.patch.object(port_context, '_expand_segment').start()
|
|
||||||
# The point is to provide coverage and to assert that no exceptions
|
# The point is to provide coverage and to assert that no exceptions
|
||||||
# are raised.
|
# are raised.
|
||||||
l2pop_mech.delete_port_postcommit(port_context)
|
l2pop_mech.delete_port_postcommit(port_context)
|
||||||
@ -1147,7 +1146,6 @@ class TestL2PopulationRpcTestCase(test_plugin.Ml2PluginV2TestCase):
|
|||||||
self.driver.get_network(
|
self.driver.get_network(
|
||||||
self.context, p['port']['network_id']),
|
self.context, p['port']['network_id']),
|
||||||
models.PortBinding(), bindings)
|
models.PortBinding(), bindings)
|
||||||
mock.patch.object(port_context, '_expand_segment').start()
|
|
||||||
# The point is to provide coverage and to assert that
|
# The point is to provide coverage and to assert that
|
||||||
# no exceptions are raised.
|
# no exceptions are raised.
|
||||||
l2pop_mech.delete_port_postcommit(port_context)
|
l2pop_mech.delete_port_postcommit(port_context)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user