MH plugin tests - remove directory._instance

Those lines are edundant and ugly so it can be removed.

Change-Id: I1cc94a08baf52958df7309a46faa052e1b0e6039
This commit is contained in:
Adit Sarfaty 2016-11-24 08:29:05 +02:00
parent 3009f37757
commit 4e4f289691

View File

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