twisted.internet.test.connectionmixins.StreamClientTestsMixin(object) class documentationtwisted.internet.test.connectionmixins
(View In Hierarchy)
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 connectmethod returns an object providingIConnector. | 
| Method | test_clientConnectionFailedStopsReactor | The reactor can be stopped by a client factory's clientConnectionFailedmethod. | 
| 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 loseConnectionis called while a producer is registered 
with the transport, the connection is closed after the producer is 
unregistered. | 
The reactor can be stopped by a client factory's 
clientConnectionFailed method.
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.
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.