summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@yahoo.com>2010-09-21 14:36:06 -0700
committerVishvananda Ishaya <vishvananda@yahoo.com>2010-09-21 14:36:06 -0700
commitb68b73d08155483d19f4088baa6a4ffe73ef5f1d (patch)
tree8c74774cc0e5d93ffd9df06fb884c5e8d7c3ac3e /nova
parent2e258a97d73aa9c08e4d6d6be364b97d1d3f97c0 (diff)
downloadnova-b68b73d08155483d19f4088baa6a4ffe73ef5f1d.tar.gz
nova-b68b73d08155483d19f4088baa6a4ffe73ef5f1d.tar.xz
nova-b68b73d08155483d19f4088baa6a4ffe73ef5f1d.zip
typo s/an/a
Diffstat (limited to 'nova')
-rw-r--r--nova/tests/rpc_unittest.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/nova/tests/rpc_unittest.py b/nova/tests/rpc_unittest.py
index e12a28fbc..f4d7b4b28 100644
--- a/nova/tests/rpc_unittest.py
+++ b/nova/tests/rpc_unittest.py
@@ -67,6 +67,17 @@ class RpcTestCase(test.BaseTestCase):
except rpc.RemoteError as exc:
self.assertEqual(int(exc.value), value)
+ def test_pass_object(self):
+ """Test that we can pass objects through rpc"""
+ class x():
+ pass
+ obj = x()
+ x.foo = 'bar'
+ x.baz = 100
+
+ result = yield rpc.call('test', {"method": "echo",
+ "args": {"value": obj}})
+ print result
class TestReceiver(object):
"""Simple Proxy class so the consumer has methods to call