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.
def test_integrationTestIPv4(self):

Agent works over IPv4.

def test_integrationTestIPv4Address(self):

Agent works over IPv4 when hostname is an IPv4 address.

def test_integrationTestIPv6(self):

Agent works over IPv6.

def test_integrationTestIPv6Address(self):

Agent works over IPv6 when hostname is an IPv6 address.

def integrationTest(self, hostName, expectedAddress, addressType, serverWrapper=lambda server: server, createAgent=client.Agent, scheme='http'):

Agent will make a TCP connection, send an HTTP request, and return a Deferred that fires when the response has been received.

ParametershostNameThe hostname to interpolate into the URL to be requested. (type: bytes)
expectedAddressThe expected address string. (type: bytes)
addressTypeThe class to construct an address out of. (type: type)
serverWrapperA 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)
createAgentA 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)
schemeThe scheme to test, http or https (type: bytes)
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.