summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEric Windisch <eric@cloudscaling.com>2013-05-29 11:52:28 -0400
committerEric Windisch <eric@cloudscaling.com>2013-05-29 11:52:28 -0400
commit1a9a744a853e838a202647bc7c5d393331083970 (patch)
tree2a4d80b0a691199fd11051fda3b24dd4fe8f9da5 /tests
parent214cad916d2ef29b2da1de87f766a578e2a37b4c (diff)
downloadoslo-1a9a744a853e838a202647bc7c5d393331083970.tar.gz
oslo-1a9a744a853e838a202647bc7c5d393331083970.tar.xz
oslo-1a9a744a853e838a202647bc7c5d393331083970.zip
MatchMakerStub - make it work & add test
The super() in MatchMakerStub.__init__ was referencing the wrong class due to copy/paste. I've also added a test for this class. Fixes bug 1185501 Change-Id: I298c8c1df4dcb3d3e905ecbb5400d16b3383fdf9
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/rpc/test_matchmaker.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/unit/rpc/test_matchmaker.py b/tests/unit/rpc/test_matchmaker.py
index 71688a4..5015600 100644
--- a/tests/unit/rpc/test_matchmaker.py
+++ b/tests/unit/rpc/test_matchmaker.py
@@ -53,3 +53,13 @@ class MatchMakerDirectExchangeTestCase(utils.BaseTestCase, common.
self.driver = matchmaker.MatchMakerLocalhost()
self.topic = "test.localhost"
self.hosts = ['localhost']
+
+
+class MatchMakerStubTestCase(utils.BaseTestCase,
+ common._MatchMakerDirectedTopicTestCase):
+ """Test lookups against the stub/no-op matchmaker."""
+ def setUp(self):
+ super(MatchMakerStubTestCase, self).setUp()
+ self.driver = matchmaker.MatchMakerStub()
+ self.topic = "test.localhost"
+ self.hosts = ['localhost']