twisted.web.test.test_agent.DummyResponse(object) class documentationtwisted.web.test.test_agent
(View In Hierarchy)
Known subclasses: twisted.web.test.test_agent.AlreadyCompletedDummyResponse
Fake IResponse for
testing readBody that captures the protocol passed to deliverBody and uses
it to make a connection with a transport.
| Instance Variable | protocol | After deliverBody is called, the protocol it was called with. |
| Instance Variable | transport | An instance created by calling transportFactory which is used
by DummyResponse.protocol
to make a connection. |
| Method | __init__ | |
| Method | deliverBody | Record the given protocol and use it to make a connection with DummyResponse.transport. |
transportFactory which is used
by DummyResponse.protocol
to make a connection.
Record the given protocol and use it to make a connection with DummyResponse.transport.