A mock positioning receiver.

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

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

Inherited from BasePositioningReceiver:

Method timeReceived Implements IPositioningReceiver.timeReceived stub.
Method headingReceived Implements IPositioningReceiver.headingReceived stub.
Method speedReceived Implements IPositioningReceiver.speedReceived stub.
Method climbReceived Implements IPositioningReceiver.climbReceived stub.
Method positionReceived Implements IPositioningReceiver.positionReceived stub.
Method positionErrorReceived Implements IPositioningReceiver.positionErrorReceived stub.
Method altitudeReceived Implements IPositioningReceiver.altitudeReceived stub.
Method beaconInformationReceived Implements IPositioningReceiver.beaconInformationReceived stub.
called =
A mapping of names of callbacks that have been called to True. (type: dict)
def __init__(self):
Undocumented
def clear(self):

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

def _addCallback(self, name):

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

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.