summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-06-11 07:43:44 +0000
committerGerrit Code Review <review@openstack.org>2013-06-11 07:43:44 +0000
commitfaddbbe318cf62791624469c4304ae4fdcc2e639 (patch)
tree57607ade5c5e3a5d4ae6634f6f4e74d814bdaefb /tests
parent6afd788f3eb21e90886bfe98e2bf66f2a829217d (diff)
parent1a9a744a853e838a202647bc7c5d393331083970 (diff)
downloadoslo-faddbbe318cf62791624469c4304ae4fdcc2e639.tar.gz
oslo-faddbbe318cf62791624469c4304ae4fdcc2e639.tar.xz
oslo-faddbbe318cf62791624469c4304ae4fdcc2e639.zip
Merge "MatchMakerStub - make it work & add test"
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']