diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-11-05 21:24:05 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-11-05 21:24:05 +0000 |
| commit | 4ba119c8f108b3e26e29a577b0d0085e47488a70 (patch) | |
| tree | 7b1fea56d6d69746ce5c87318e228c31a9f68cd1 /tests | |
| parent | 37ada8bdb190f8e043003a41f67fff706cde332b (diff) | |
| parent | 2f7503372467d9998b67e2c58ffaf51733329944 (diff) | |
Merge "Tweak rpc.queue_get_for to deal with host=None."
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unit/rpc/test_common.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/rpc/test_common.py b/tests/unit/rpc/test_common.py index 2066a64..80b717b 100644 --- a/tests/unit/rpc/test_common.py +++ b/tests/unit/rpc/test_common.py @@ -167,3 +167,7 @@ class RpcCommonTestCase(test_utils.BaseTestCase): importutils.import_module = orig_import_module self.assertEqual(self.mod, 'nova.openstack.common.rpc.impl_qpid') + + def test_queue_get_for(self): + self.assertEqual(rpc.queue_get_for(None, 'a', 'b'), 'a.b') + self.assertEqual(rpc.queue_get_for(None, 'a', None), 'a') |
