Known subclasses: twisted.test.test_ssl.StolenTCPTests, twisted.test.test_tcp.ProperlyCloseFilesTests

Tests for platform resources properly being cleaned up.

Method createServer Bind a server port to which connections will be made. The server should use the given protocol factory.
Method connectClient Establish a connection to the given address using the given ClientCreator instance.
Method getHandleExceptionType Return the exception class which will be raised when an operation is attempted on a closed platform handle.
Method getHandleErrorCodeMatcher Return a hamcrest.core.matcher.Matcher that matches the errno expected to result from writing to a closed platform socket handle.
Method test_properlyCloseFiles Test that lost connections properly have their underlying socket resources cleaned up.
def createServer(self, address, portNumber, factory):

Bind a server port to which connections will be made. The server should use the given protocol factory.

ReturnsThe IListeningPort for the server created.
def connectClient(self, address, portNumber, clientCreator):

Establish a connection to the given address using the given ClientCreator instance.

ReturnsA Deferred which will fire with the connected protocol instance.
def getHandleExceptionType(self):

Return the exception class which will be raised when an operation is attempted on a closed platform handle.

def getHandleErrorCodeMatcher(self):

Return a hamcrest.core.matcher.Matcher that matches the errno expected to result from writing to a closed platform socket handle.

def test_properlyCloseFiles(self):

Test that lost connections properly have their underlying socket resources cleaned up.

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