twisted.internet.testing._FakeConnector(object) class documentationtwisted.internet.testing
(View In Hierarchy)
Known subclasses: twisted.spread.test.test_pb._ReconnectingFakeConnector
Implements interfaces: twisted.internet.interfaces.IConnector
A fake IConnector
that allows us to inspect if it has been told to stop connecting.
| Instance Variable | stoppedConnecting | has this connector's _FakeConnector.stopConnectingmethod been invoked yet? | 
| Method | __init__ | |
| Method | stopConnecting | Implement IConnector.stopConnectingand set_FakeConnector.stoppedConnectingtoTrue | 
| Method | disconnect | Implement IConnector.disconnectas a no-op. | 
| Method | connect | Implement IConnector.connectas a no-op. | 
| Method | getDestination | Implement IConnector.getDestinationto return theaddresspassed to__init__. | 
| Instance Variable | _address | An IAddressprovider that represents our destination. | 
| Parameters | address | An IAddressprovider that represents this connector's destination. | 
Implement IConnector.stopConnecting
and set _FakeConnector.stoppedConnecting
to True
Implement IConnector.connect
as a no-op.
Implement IConnector.getDestination
to return the address passed to __init__.