diff options
| author | Vishvananda Ishaya <vishvananda@yahoo.com> | 2010-09-21 14:36:06 -0700 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@yahoo.com> | 2010-09-21 14:36:06 -0700 |
| commit | b68b73d08155483d19f4088baa6a4ffe73ef5f1d (patch) | |
| tree | 8c74774cc0e5d93ffd9df06fb884c5e8d7c3ac3e | |
| parent | 2e258a97d73aa9c08e4d6d6be364b97d1d3f97c0 (diff) | |
| download | nova-b68b73d08155483d19f4088baa6a4ffe73ef5f1d.tar.gz nova-b68b73d08155483d19f4088baa6a4ffe73ef5f1d.tar.xz nova-b68b73d08155483d19f4088baa6a4ffe73ef5f1d.zip | |
typo s/an/a
| -rwxr-xr-x | bin/nova-manage | 2 | ||||
| -rw-r--r-- | nova/tests/rpc_unittest.py | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/bin/nova-manage b/bin/nova-manage index 4ae2f20dc..c5c7322bf 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -149,7 +149,7 @@ class ShellCommands(object): self.run('ipython') def python(self): - """Runs an python shell. + """Runs a python shell. Falls back to Python shell if unavailable""" self.run('python') 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 |
