twisted.positioning.test.receiver.MockPositioningReceiver(base.BasePositioningReceiver)
class documentationtwisted.positioning.test.receiver
(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.
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. |