t.t.p._FakePort(object) : class documentation

Part of twisted.test.proto_helpers View Source View In Hierarchy

Implements interfaces: twisted.internet.interfaces.IListeningPort

A fake IListeningPort to be used in tests.

Instance Variable _hostAddress The IAddress this IListeningPort is pretending to be listening on.
Method __init__
Method startListening Fake IListeningPort.startListening that doesn't do anything.
Method stopListening Fake IListeningPort.stopListening that doesn't do anything.
Method getHost Fake IListeningPort.getHost that returns our IAddress.
_hostAddress =
The IAddress this IListeningPort is pretending to be listening on.
def __init__(self, hostAddress): (source)
ParametershostAddressAn IAddress this IListeningPort should pretend to be listening on.
def startListening(self): (source)

Fake IListeningPort.startListening that doesn't do anything.

def stopListening(self): (source)

Fake IListeningPort.stopListening that doesn't do anything.

def getHost(self): (source)

Fake IListeningPort.getHost that returns our IAddress.

API Documentation for Twisted, generated by pydoctor at 2015-04-13 15:26:48.