Unit Tests for remote procedure calls using queue
Bases: nova.test.TestCase
Test cases for rpc
Test that exception gets passed back properly
rpc.call returns a RemoteError object. The value of the exception is converted to a string, so we convert it back to an int in the test.
Get a value through rpc call
Makes sure a context is passed through rpc call
Test that we can do an rpc.call inside another call
Bases: object
Simple Proxy class so the consumer has methods to call
Uses static methods because we aren’t actually storing any state
Returns dictionary version of context
Simply returns whatever value is sent in
Raises an exception with the value sent in