class ClientEndpointTestCaseMixin: (source)
Known subclasses: twisted.internet.test.test_endpoints.EndpointTestCaseMixin
, twisted.internet.test.test_endpoints.HostnameEndpointsOneIPv4Tests
, twisted.internet.test.test_endpoints.HostnameEndpointsOneIPv6Tests
, twisted.internet.test.test_endpoints.TCP6EndpointNameResolutionTests
, twisted.internet.test.test_endpoints._HostnameEndpointMemoryReactorMixin
Generic test methods to be mixed into all client endpoint test classes.
Method | retrieve |
Retrieve a single factory that has connected using the given reactor. (This behavior is valid for TCP and SSL but needs to be overridden for UNIX.) |
Method | test_endpoint |
If an endpoint tries to connect to a non-listening port it gets a ConnectError failure. |
Method | test_endpoint |
Calling Deferred.cancel on the Deferred returned from IStreamClientEndpoint.connect is errbacked with an expected ConnectingCancelledError exception. |
Method | test_endpoint |
The endpoint should pass it's connectArgs parameter to the reactor's listen methods. |
Method | test_endpoint |
A client endpoint can connect and returns a deferred who gets called back with a protocol instance. |
Method | test |
The endpoint provides interfaces.IStreamClientEndpoint |
twisted.internet.test.test_endpoints.UNIXEndpointsTests
Retrieve a single factory that has connected using the given reactor. (This behavior is valid for TCP and SSL but needs to be overridden for UNIX.)
Parameters | |
reactor | a MemoryReactor |
twisted.internet.test.test_endpoints.HostnameEndpointsOneIPv4Tests
, twisted.internet.test.test_endpoints.HostnameEndpointsOneIPv6Tests
, twisted.internet.test.test_endpoints._HostnameEndpointMemoryReactorMixin
If an endpoint tries to connect to a non-listening port it gets a ConnectError failure.
twisted.internet.test.test_endpoints.HostnameEndpointsOneIPv4Tests
, twisted.internet.test.test_endpoints.HostnameEndpointsOneIPv6Tests
Calling Deferred.cancel
on the Deferred
returned from IStreamClientEndpoint.connect
is errbacked with an expected ConnectingCancelledError
exception.