This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.tests.test_rpc_common Module

Unit Tests for remote procedure calls shared between all implementations

class nova.tests.test_rpc_common.TestReceiver

Bases: object

Simple Proxy class so the consumer has methods to call.

Uses static methods because we aren’t actually storing any state.

static context(context, value)

Returns dictionary version of context.

static echo(context, value)

Simply returns whatever value is sent in.

static echo_three_times(context, value)
static echo_three_times_yield(context, value)
static fail(context, value)

Raises an exception with the value sent in.