diff options
| author | Vishvananda Ishaya <vishvananda@yahoo.com> | 2010-09-29 01:58:14 +0000 |
|---|---|---|
| committer | Tarmac <> | 2010-09-29 01:58:14 +0000 |
| commit | 767db3693d5552d6bb986e69b200ab840a5139ae (patch) | |
| tree | 39390d3c9cd584a7375a2e9f707c2099fdd1c11d /nova | |
| parent | 27220e66e20e30304bae8491ebe90fcc968c43ca (diff) | |
| parent | b68b73d08155483d19f4088baa6a4ffe73ef5f1d (diff) | |
Adds bpython support to nova-manage shell, because it is super sexy.
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/tests/rpc_unittest.py | 11 |
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 |
