Known subclasses: twisted.internet.test.test_tcp.TCPClientTestsBase, twisted.internet.test.test_unix.UnixClientTestsBuilder

This mixin defines tests applicable to SOCK_STREAM client implementations.

This must be mixed in to a ReactorBuilder subclass, as it depends on several of its methods.

Then the methods connect and listen must defined, defining a client and a server communicating with each other.

Method test_interface The connect method returns an object providing IConnector.
Method test_clientConnectionFailedStopsReactor The reactor can be stopped by a client factory's clientConnectionFailed method.
Method test_connectEvent This test checks that we correctly get notifications event for a client. This ought to prevent a regression under Windows using the GTK2 reactor. See #3925.
Method test_unregisterProducerAfterDisconnect No summary
Method test_disconnectWhileProducing If loseConnection is called while a producer is registered with the transport, the connection is closed after the producer is unregistered.
def test_interface(self):

The connect method returns an object providing IConnector.

def test_clientConnectionFailedStopsReactor(self):

The reactor can be stopped by a client factory's clientConnectionFailed method.

def test_connectEvent(self):

This test checks that we correctly get notifications event for a client. This ought to prevent a regression under Windows using the GTK2 reactor. See #3925.

def test_unregisterProducerAfterDisconnect(self):

If a producer is unregistered from a transport after the transport has been disconnected (by the peer) and after loseConnection has been called, the transport is not re-added to the reactor as a writer as would be necessary if the transport were still connected.

def test_disconnectWhileProducing(self):

If loseConnection is called while a producer is registered with the transport, the connection is closed after the producer is unregistered.

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