twisted.web.test.test_agent.IntegrationTestingMixin(object) class documentationtwisted.web.test.test_agent
(View In Hierarchy)
Known subclasses: twisted.web.test.test_agent.AgentHTTPSTests, twisted.web.test.test_agent.AgentTests
Transport-to-Agent integration tests for both HTTP and HTTPS.
| Method | test_integrationTestIPv4 | Agent works
over IPv4. |
| Method | test_integrationTestIPv4Address | Agent works
over IPv4 when hostname is an IPv4 address. |
| Method | test_integrationTestIPv6 | Agent works
over IPv6. |
| Method | test_integrationTestIPv6Address | Agent works
over IPv6 when hostname is an IPv6 address. |
| Method | integrationTest | Agent will make
a TCP connection, send an HTTP request, and return a Deferred that
fires when the response has been received. |
Agent will make
a TCP connection, send an HTTP request, and return a Deferred that
fires when the response has been received.
| Parameters | hostName | The hostname to interpolate into the URL to be requested. (type: bytes) |
| expectedAddress | The expected address string. (type: bytes) | |
| addressType | The class to construct an address out of. (type: type) | |
| serverWrapper | A callable that takes a protocol factory and returns a protocol factory;
used to wrap the server / responder side in a TLS server. (type: serverWrapper(twisted.internet.interfaces.IProtocolFactory)
-> twisted.internet.interfaces.IProtocolFactory) | |
| createAgent | A callable that takes a reactor and produces an IAgent; used to
construct an agent with an appropriate trust root for TLS. (type: createAgent(reactor) -> IAgent) | |
| scheme | The scheme to test, http or https (type: bytes) |