twisted.test.proto_helpers
module documentationtwisted.test
View Source
Assorted functionality which is commonly useful when writing unit tests.
Class | AccumulatingProtocol | AccumulatingProtocol
is an IProtocol
implementation which collects the data delivered to it and can fire a
Deferred when it is connected or disconnected. |
Class | LineSendingProtocol | Undocumented |
Class | FakeDatagramTransport | Undocumented |
Class | StringTransport | A transport implementation which buffers data in memory and keeps track of its other state without providing any behavior. |
Class | StringTransportWithDisconnection | A StringTransport
which can be disconnected. |
Class | StringIOWithoutClosing | A BytesIO that can't be closed. |
Class | _FakePort | A fake IListeningPort
to be used in tests. |
Class | _FakeConnector | A fake IConnector
that allows us to inspect if it has been told to stop connecting. |
Class | MemoryReactor | A fake reactor to be used in tests. This reactor doesn't actually do much that's useful yet. It accepts TCP connection setup attempts, but they will never succeed. |
Class | MemoryReactorClock | Undocumented |
Class | RaisingMemoryReactor | A fake reactor to be used in tests. It accepts TCP connection setup attempts, but they will fail. |