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 | Agentworks 
over IPv4. | 
| Method | test_integrationTestIPv4Address | Agentworks 
over IPv4 when hostname is an IPv4 address. | 
| Method | test_integrationTestIPv6 | Agentworks 
over IPv6. | 
| Method | test_integrationTestIPv6Address | Agentworks 
over IPv6 when hostname is an IPv6 address. | 
| Method | integrationTest | Agentwill make
a TCP connection, send an HTTP request, and return aDeferredthat 
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, httporhttps(type:bytes) |