class documentation
class MockPositioningReceiver(base.BasePositioningReceiver): (source)
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 | _add |
Adds a callback of the given name, setting self.called[name] to True when called. |
Inherited from BasePositioningReceiver
:
Method | altitude |
Implements IPositioningReceiver.altitudeReceived stub. |
Method | beacon |
Implements IPositioningReceiver.beaconInformationReceived stub. |
Method | climb |
Implements IPositioningReceiver.climbReceived stub. |
Method | heading |
Implements IPositioningReceiver.headingReceived stub. |
Method | position |
Implements IPositioningReceiver.positionErrorReceived stub. |
Method | position |
Implements IPositioningReceiver.positionReceived stub. |
Method | speed |
Implements IPositioningReceiver.speedReceived stub. |
Method | time |
Implements IPositioningReceiver.timeReceived stub. |