summaryrefslogtreecommitdiffstats
path: root/tests/unit/rpc/test_proxy.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-01-28 07:55:57 +0000
committerGerrit Code Review <review@openstack.org>2013-01-28 07:55:57 +0000
commit983382c5b9d64d902eb570780df341ea3aa9a83e (patch)
treea76c8aad6edb5a5606fa11a8da80853e3985e19e /tests/unit/rpc/test_proxy.py
parent0eeeb6f57a01adc6dc1e17339ba6591d0e2dee1b (diff)
parent827547a0b3da411441bf691ddbc94867001a3311 (diff)
downloadoslo-983382c5b9d64d902eb570780df341ea3aa9a83e.tar.gz
oslo-983382c5b9d64d902eb570780df341ea3aa9a83e.tar.xz
oslo-983382c5b9d64d902eb570780df341ea3aa9a83e.zip
Merge "Use testtools as test base class."
Diffstat (limited to 'tests/unit/rpc/test_proxy.py')
-rw-r--r--tests/unit/rpc/test_proxy.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/unit/rpc/test_proxy.py b/tests/unit/rpc/test_proxy.py
index 393f328..ae05b3f 100644
--- a/tests/unit/rpc/test_proxy.py
+++ b/tests/unit/rpc/test_proxy.py
@@ -20,23 +20,19 @@ Unit Tests for rpc.proxy
import copy
import stubout
-import unittest
+import testtools
from openstack.common import context
+from openstack.common.fixture import moxstubout
from openstack.common import rpc
from openstack.common.rpc import proxy
-class RpcProxyTestCase(unittest.TestCase):
+class RpcProxyTestCase(testtools.TestCase):
def setUp(self):
- self.stubs = stubout.StubOutForTesting()
super(RpcProxyTestCase, self).setUp()
-
- def tearDown(self):
- self.stubs.UnsetAll()
- self.stubs.SmartUnsetAll()
- super(RpcProxyTestCase, self).tearDown()
+ self.stubs = self.useFixture(moxstubout.MoxStubout()).stubs
def _test_rpc_method(self, rpc_method, has_timeout=False, has_retval=False,
server_params=None, supports_topic_override=True):