Known subclasses: twisted.internet.test.test_tcp.TCPClientTestsBase, twisted.internet.test.test_tls.SSLClientTestsMixin, twisted.internet.test.test_tls.StartTLSClientTestsMixin, twisted.internet.test.test_unix.UNIXTestsBuilder

This mixin defines test methods which should apply to most ITransport implementations.

Method test_logPrefix Client and server transports implement ILoggingContext.logPrefix to return a message reflecting the protocol they are running.
Method test_writeAfterDisconnect After a connection is disconnected, ITransport.write and ITransport.writeSequence are no-ops.
Method test_protocolGarbageAfterLostConnection After the connection a protocol is being used for is closed, the reactor discards all of its references to the protocol.
def test_logPrefix(self):

Client and server transports implement ILoggingContext.logPrefix to return a message reflecting the protocol they are running.

def test_writeAfterDisconnect(self):

After a connection is disconnected, ITransport.write and ITransport.writeSequence are no-ops.

def test_protocolGarbageAfterLostConnection(self):

After the connection a protocol is being used for is closed, the reactor discards all of its references to the protocol.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.