summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-06-12 23:30:20 +0000
committerGerrit Code Review <review@openstack.org>2013-06-12 23:30:20 +0000
commit098ef3735d878f96dd2e4b383ed8bc66898aaaa4 (patch)
tree15d4214bf5e093e8a00be4267cd0630f75420c1d /nova/tests
parentcd8408abe8962e03776c0f6eec1e3d740e84ebde (diff)
parentb71c7c1c43087d4f1ba3ad102cc2a4dd3e305c2f (diff)
Merge "Fix msg version type sent to cells RPC API"
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/cells/test_cells_rpcapi.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/nova/tests/cells/test_cells_rpcapi.py b/nova/tests/cells/test_cells_rpcapi.py
index e44c0be4a..4d58bdb9e 100644
--- a/nova/tests/cells/test_cells_rpcapi.py
+++ b/nova/tests/cells/test_cells_rpcapi.py
@@ -55,6 +55,9 @@ class CellsAPITestCase(test.TestCase):
self.assertEqual(self.fake_context, call_info['context'])
self.assertEqual(self.fake_topic, call_info['topic'])
self.assertEqual(method, call_info['msg']['method'])
+ msg_version = call_info['msg']['version']
+ self.assertTrue(isinstance(msg_version, basestring),
+ "Message version %s is not a string" % msg_version)
self.assertEqual(version, call_info['msg']['version'])
self.assertEqual(args, call_info['msg']['args'])
@@ -127,7 +130,7 @@ class CellsAPITestCase(test.TestCase):
'arg2': 2,
'arg3': 3}}
self._check_result(call_info, 'build_instances',
- expected_args, version=1.8)
+ expected_args, version='1.8')
def test_get_capacities(self):
capacity_info = {"capacity": "info"}