class documentation
class StreamClientTestsMixin:
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_client |
The reactor can be stopped by a client factory's clientConnectionFailed method. |
Method | test_connect |
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_disconnect |
If loseConnection is called while a producer is registered with the transport, the connection is closed after the producer is unregistered. |
Method | test |
The connect method returns an object providing IConnector . |
Method | test_unregister |
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. |
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 loseConnection is called while a producer is registered with the transport, the connection is closed after the producer is unregistered.