class documentation

class MockPositioningReceiver(base.BasePositioningReceiver): (source)

View In Hierarchy

A mock positioning receiver.

Mocks all the IPositioningReceiver methods with stubs that don't do anything but register that they were called.

Method __init__ Undocumented
Method clear Forget all the methods that have been called on this receiver, by emptying self.called.
Instance Variable called A mapping of names of callbacks that have been called to True.
Method _addCallback Adds a callback of the given name, setting self.called[name] to True when called.

Inherited from BasePositioningReceiver:

Method altitudeReceived Implements IPositioningReceiver.altitudeReceived stub.
Method beaconInformationReceived Implements IPositioningReceiver.beaconInformationReceived stub.
Method climbReceived Implements IPositioningReceiver.climbReceived stub.
Method headingReceived Implements IPositioningReceiver.headingReceived stub.
Method positionErrorReceived Implements IPositioningReceiver.positionErrorReceived stub.
Method positionReceived Implements IPositioningReceiver.positionReceived stub.
Method speedReceived Implements IPositioningReceiver.speedReceived stub.
Method timeReceived Implements IPositioningReceiver.timeReceived stub.
def __init__(self): (source)

Undocumented

def clear(self): (source)

Forget all the methods that have been called on this receiver, by emptying self.called.

called: dict = (source)

A mapping of names of callbacks that have been called to True.

def _addCallback(self, name): (source)

Adds a callback of the given name, setting self.called[name] to True when called.