Package gofer :: Package rmi :: Module mock
[hide private]
[frames] | no frames]

Module mock

source code

Classes [hide private]
  MetaContainer
Mock container singleton by uuid only.
  MockContainer
The (mock) stub container
  Call
Call object.
  Stub
Mock stub.
  Method
Method wrapper.
  Factory
Stub factory
Functions [hide private]
MockContainer
agent(uuid, **options)
Get a (mock) proxy for the remote Agent.
source code
 
register(**mocks)
Register (mock) stubs.
source code
 
purge()
Purge (mock) stubs
source code
 
install()
Install the mock agent.
source code
 
reset()
Reset (mock) container singletons.
source code
MockContainer
all()
Get all mock container instances.
source code
Variables [hide private]
  __package__ = 'gofer.rmi'
Function Details [hide private]

agent(uuid, **options)

source code 

Get a (mock) proxy for the remote Agent.

Parameters:
  • uuid (str) - An agent ID.
Returns: MockContainer
A (mock) agent proxy.

all()

source code 

Get all mock container instances.

Returns: MockContainer
A list of mock container instances.