class documentation
class ProperlyCloseFilesMixin: (source)
Known subclasses: twisted.test.test_ssl.StolenTCPTests
, twisted.test.test_tcp.ProperlyCloseFilesTests
Tests for platform resources properly being cleaned up.
Method | connect |
Establish a connection to the given address using the given ClientCreator instance. |
Method | create |
Bind a server port to which connections will be made. The server should use the given protocol factory. |
Method | get |
Return a hamcrest.core.matcher.Matcher that matches the errno expected to result from writing to a closed platform socket handle. |
Method | get |
Return the exception class which will be raised when an operation is attempted on a closed platform handle. |
Method | test_properly |
Test that lost connections properly have their underlying socket resources cleaned up. |
Establish a connection to the given address using the given ClientCreator
instance.
Returns | |
A Deferred which will fire with the connected protocol instance. |
Bind a server port to which connections will be made. The server should use the given protocol factory.
Returns | |
The IListeningPort for the server created. |
overridden in
twisted.test.test_ssl.StolenTCPTests
Return a hamcrest.core.matcher.Matcher
that matches the errno expected to result from writing to a closed platform socket handle.