From 4e4f2896919e9c4b9f5a5da0d33ae4f0627a8a9e Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Thu, 24 Nov 2016 08:29:05 +0200 Subject: [PATCH] MH plugin tests - remove directory._instance Those lines are edundant and ugly so it can be removed. Change-Id: I1cc94a08baf52958df7309a46faa052e1b0e6039 --- vmware_nsx/tests/unit/nsx_mh/test_opts.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/vmware_nsx/tests/unit/nsx_mh/test_opts.py b/vmware_nsx/tests/unit/nsx_mh/test_opts.py index 3f153ca800..595be8c6b3 100644 --- a/vmware_nsx/tests/unit/nsx_mh/test_opts.py +++ b/vmware_nsx/tests/unit/nsx_mh/test_opts.py @@ -13,8 +13,6 @@ # under the License. # -import fixtures - import mock from neutron.tests import base from oslo_config import cfg @@ -75,9 +73,6 @@ class ConfigurationTest(base.BaseTestCase): def setUp(self): super(ConfigurationTest, self).setUp() - self.useFixture(fixtures.MonkeyPatch( - 'neutron_lib.plugins.directory._instance', - None)) # Avoid runs of the synchronizer looping call patch_sync = mock.patch.object(sync, '_start_loopingcall') patch_sync.start() @@ -240,9 +235,6 @@ class OldNVPConfigurationTest(base.BaseTestCase): def setUp(self): super(OldNVPConfigurationTest, self).setUp() - self.useFixture(fixtures.MonkeyPatch( - 'neutron_lib.plugins.directory._instance', - None)) # Avoid runs of the synchronizer looping call patch_sync = mock.patch.object(sync, '_start_loopingcall') patch_sync.start()