twisted.internet.test.test_endpoints.EndpointTestCaseMixin(ServerEndpointTestCaseMixin, ClientEndpointTestCaseMixin) class documentationtwisted.internet.test.test_endpoints
          
          (View In Hierarchy)
        
      Known subclasses: twisted.internet.test.test_endpoints.SSL4EndpointsTests, twisted.internet.test.test_endpoints.TCP4EndpointsTests, twisted.internet.test.test_endpoints.TCP6EndpointsTests, twisted.internet.test.test_endpoints.UNIXEndpointsTests
Generic test methods to be mixed into all endpoint test classes.
Inherited from ServerEndpointTestCaseMixin:
| Method | test_interface | The endpoint provides interfaces.IStreamServerEndpoint. | 
| Method | test_endpointListenSuccess | An endpoint can listen and returns a deferred that gets called back with a port instance. | 
| Method | test_endpointListenFailure | When an endpoint tries to listen on an already listening port, a CannotListenErrorfailure is errbacked. | 
| Method | test_endpointListenNonDefaultArgs | The endpoint should pass it's listenArgs parameter to the reactor's listen methods. | 
Inherited from ClientEndpointTestCaseMixin:
| 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 ConnectErrorfailure. | 
| Method | test_endpointConnectingCancelled | Calling Deferred.cancelon theDeferredreturned fromIStreamClientEndpoint.connectis errbacked with an expectedConnectingCancelledErrorexception. | 
| Method | test_endpointConnectNonDefaultArgs | The endpoint should pass it's connectArgs parameter to the reactor's listen methods. |