summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--neutron/tests/unit/bigswitch/test_capabilities.py2
-rw-r--r--neutron/tests/unit/bigswitch/test_router_db.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/neutron/tests/unit/bigswitch/test_capabilities.py b/neutron/tests/unit/bigswitch/test_capabilities.py
index 2b694210c4..5dc1f29de9 100644
--- a/neutron/tests/unit/bigswitch/test_capabilities.py
+++ b/neutron/tests/unit/bigswitch/test_capabilities.py
@@ -72,6 +72,8 @@ class CapabilitiesTests(test_router_db.RouterDBTestBase):
# perform a task to cause capabilities to be retrieved
with self.floatingip_with_assoc():
pass
+ # stop default HTTP patch since we need a magicmock
+ self.httpPatch.stop()
# now mock HTTP class instead of REST so we can see headers
conmock = mock.patch(HTTPCON).start()
instance = conmock.return_value
diff --git a/neutron/tests/unit/bigswitch/test_router_db.py b/neutron/tests/unit/bigswitch/test_router_db.py
index fa4ce28433..e5b24262ec 100644
--- a/neutron/tests/unit/bigswitch/test_router_db.py
+++ b/neutron/tests/unit/bigswitch/test_router_db.py
@@ -39,7 +39,7 @@ from neutron.tests.unit import test_extension_extradhcpopts as test_extradhcp
from neutron.tests.unit import test_l3_plugin
-HTTPCON = 'neutron.plugins.bigswitch.servermanager.httplib.HTTPConnection'
+HTTPCON = 'neutron.plugins.bigswitch.servermanager.HTTPConnection'
_uuid = uuidutils.generate_uuid
@@ -171,6 +171,7 @@ class RouterDBTestCase(RouterDBTestBase,
net_id=psub['subnet']['network_id'],
port_id=p1['port']['id'],
tenant_id=tenant1_id)
+ self.httpPatch.stop()
multiFloatPatch = patch(
HTTPCON,
new=fake_server.VerifyMultiTenantFloatingIP)
@@ -180,6 +181,7 @@ class RouterDBTestCase(RouterDBTestBase,
port_id=p2['port']['id'],
tenant_id=tenant2_id)
multiFloatPatch.stop()
+ self.httpPatch.start()
self._delete('floatingips', fl1['floatingip']['id'])
self._delete('floatingips', fl2['floatingip']['id'])
self._router_interface_action(