From 25ae0429a713143d42f626dd59ed4514ba25820c Mon Sep 17 00:00:00 2001 From: Kevin Benton Date: Thu, 25 Jun 2015 18:24:10 -0700 Subject: [PATCH] Remove double fanout mock The test_mech_driver was duplicating a fanout mock already setup in the setUp routine. Change-Id: I5b88dff13113d55c72241d3d5025791a76672ac2 Partial-Bug: #1468998 --- .../unit/plugins/ml2/drivers/l2pop/test_mech_driver.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/neutron/tests/unit/plugins/ml2/drivers/l2pop/test_mech_driver.py b/neutron/tests/unit/plugins/ml2/drivers/l2pop/test_mech_driver.py index 9275689fe..52e233bc9 100644 --- a/neutron/tests/unit/plugins/ml2/drivers/l2pop/test_mech_driver.py +++ b/neutron/tests/unit/plugins/ml2/drivers/l2pop/test_mech_driver.py @@ -710,16 +710,10 @@ class TestL2PopulationRpcTestCase(test_plugin.Ml2PluginV2TestCase): p1['status'] = 'ACTIVE' self.mock_fanout.reset_mock() - fanout = ('neutron.plugins.ml2.drivers.l2pop.rpc.' - 'L2populationAgentNotifyAPI._notification_fanout') - fanout_patch = mock.patch(fanout) - mock_fanout = fanout_patch.start() - plugin = manager.NeutronManager.get_plugin() plugin.update_port(self.adminContext, p1['id'], port1) - self.assertFalse(mock_fanout.called) - fanout_patch.stop() + self.assertFalse(self.mock_fanout.called) def test_get_device_details_port_id(self): self._register_ml2_agents() -- 2.45.2