Known subclasses: twisted.internet.test.test_endpoints._HostnameEndpointMemoryReactorMixin, twisted.internet.test.test_endpoints.EndpointTestCaseMixin, twisted.internet.test.test_endpoints.HostnameEndpointsOneIPv4Tests, twisted.internet.test.test_endpoints.HostnameEndpointsOneIPv6Tests, twisted.internet.test.test_endpoints.TCP6EndpointNameResolutionTests

Generic test methods to be mixed into all client endpoint test classes.

Method test_interface The endpoint provides interfaces.IStreamClientEndpoint
Method retrieveConnectedFactory 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_endpointConnectSuccess A client endpoint can connect and returns a deferred who gets called back with a protocol instance.
Method test_endpointConnectFailure If an endpoint tries to connect to a non-listening port it gets a ConnectError failure.
Method test_endpointConnectingCancelled Calling Deferred.cancel on the Deferred returned from IStreamClientEndpoint.connect is errbacked with an expected ConnectingCancelledError exception.
Method test_endpointConnectNonDefaultArgs The endpoint should pass it's connectArgs parameter to the reactor's listen methods.
def test_interface(self):

The endpoint provides interfaces.IStreamClientEndpoint

def retrieveConnectedFactory(self, reactor):

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.)

Parametersreactora MemoryReactor
def test_endpointConnectSuccess(self):

A client endpoint can connect and returns a deferred who gets called back with a protocol instance.

def test_endpointConnectFailure(self):
def test_endpointConnectNonDefaultArgs(self):

The endpoint should pass it's connectArgs parameter to the reactor's listen methods.

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