twisted.test.proto_helpers._FakeConnector(object)
class documentationtwisted.test.proto_helpers
View Source
(View In Hierarchy)
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.stopConnecting
method been invoked yet? |
Instance Variable | _address | An IAddress
provider that represents our destination. |
Method | __init__ | |
Method | stopConnecting | Implement IConnector.stopConnecting
and set FakeConnector.stoppedConnecting to
True |
Method | disconnect | Implement IConnector.disconnect
as a no-op. |
Method | connect | Implement IConnector.connect
as a no-op. |
Method | getDestination | Implement IConnector.getDestination
to return the address passed to __init__ . |
Parameters | address | An IAddress
provider that represents this connector's destination. |
Implement IConnector.stopConnecting
and set FakeConnector.stoppedConnecting
to
True
Implement IConnector.getDestination
to return the address
passed to __init__
.