summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkihiro Motoki <amotoki@gmail.com>2017-06-15 09:02:23 +0900
committerAkihiro Motoki <amotoki@gmail.com>2017-06-15 09:02:23 +0900
commitf4376220d380ef9e4eb7cf6d7872d519d3b71c78 (patch)
tree95752d1b815eb97cd757a4b2dfe06434dee4df81
parent41961a25fdc9e110ec51d8e78c6feb2736bebd6f (diff)
downloadpython-neutronclient-f4376220d380ef9e4eb7cf6d7872d519d3b71c78.tar.gz
Call mock.patch.stopall in OSC unit tests
OSC unit tests inherits osc_lib.test.utils and mock.patch.stopall (or stop) is not called anywhere. Change-Id: I1249678be7a7c823ea3824bf08e603864de023fd
-rw-r--r--neutronclient/tests/unit/osc/v2/fakes.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/neutronclient/tests/unit/osc/v2/fakes.py b/neutronclient/tests/unit/osc/v2/fakes.py
index db962d2..cc30842 100644
--- a/neutronclient/tests/unit/osc/v2/fakes.py
+++ b/neutronclient/tests/unit/osc/v2/fakes.py
@@ -26,6 +26,7 @@ class TestNeutronClientOSCV2(utils.TestCommand):
self.app.client_manager.session = mock.Mock()
self.app.client_manager.neutronclient = mock.Mock()
self.neutronclient = self.app.client_manager.neutronclient
+ self.addCleanup(mock.patch.stopall)
# TODO(amotoki): Move this to osc_lib
def assertListItemEqual(self, expected, actual):