summaryrefslogtreecommitdiffstats
path: root/tests/unit/rpc
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2013-05-20 13:14:32 +0100
committerMark McLoughlin <markmc@redhat.com>2013-05-20 13:46:14 +0100
commitba849efe75f9ca267e03ca22e8647f140bbaaf66 (patch)
treeeb81f4428540f1ab5feeafae3da72f5c748796c2 /tests/unit/rpc
parent2d579dd3f311d3c5cb9aa1658d81488bb526b09c (diff)
downloadoslo-ba849efe75f9ca267e03ca22e8647f140bbaaf66.tar.gz
oslo-ba849efe75f9ca267e03ca22e8647f140bbaaf66.tar.xz
oslo-ba849efe75f9ca267e03ca22e8647f140bbaaf66.zip
Use mox object from moxstubout fixture
The moxstubout fixture creates a mox object which we can re-use in tests. It also ensures verify() is called, which it clearly wasn't in the case of the qpid tests. Change-Id: Ibf3326f18b160865012d40a5841b65438262c4df
Diffstat (limited to 'tests/unit/rpc')
-rw-r--r--tests/unit/rpc/test_qpid.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/unit/rpc/test_qpid.py b/tests/unit/rpc/test_qpid.py
index 82cc119..1630ac4 100644
--- a/tests/unit/rpc/test_qpid.py
+++ b/tests/unit/rpc/test_qpid.py
@@ -69,7 +69,6 @@ class RpcQpidTestCase(utils.BaseTestCase):
self.mock_session = None
self.mock_sender = None
self.mock_receiver = None
- self.mox = mox.Mox()
self.orig_connection = qpid.messaging.Connection
self.orig_session = qpid.messaging.Session
@@ -437,7 +436,6 @@ class RpcQpidTestCase(utils.BaseTestCase):
if expect_failure:
self.mock_session.next_receiver(timeout=mox.IsA(int)).AndRaise(
qpid.messaging.exceptions.Empty())
- self.mock_receiver.fetch()
self.mock_session.close()
self.mock_connection.session().AndReturn(self.mock_session)
else: