class documentation

class FakeSender: (source)

View In Hierarchy

This is a fake implementation of the 'box sender' interface implied by AMP.

Method __init__ Create a fake sender and initialize the list of received boxes and unhandled errors.
Method expectError Expect one error, so that the test doesn't fail.
Method sendBox Accept a box, but don't do anything.
Method unhandledError Deal with failures by instantly re-raising them for easier debugging.
Instance Variable expectedErrors Undocumented
Instance Variable sentBoxes Undocumented
Instance Variable unhandledErrors Undocumented
def __init__(self): (source)

Create a fake sender and initialize the list of received boxes and unhandled errors.

def expectError(self): (source)

Expect one error, so that the test doesn't fail.

def sendBox(self, box): (source)

Accept a box, but don't do anything.

def unhandledError(self, failure): (source)

Deal with failures by instantly re-raising them for easier debugging.

expectedErrors: int = (source)

Undocumented

sentBoxes: list = (source)

Undocumented

unhandledErrors: list = (source)

Undocumented