Tests for twisted.web._newclient.
| Class | ArbitraryException | A unique, arbitrary exception type which twisted.web._newclientknows nothing about. | 
| Class | AnotherArbitraryException | Similar to ArbitraryExceptionbut with a different identity. | 
| Function | assertWrapperExceptionTypes | Assert that the given Deferredfails
with the exception given bymainTypeand that the exceptions 
wrapped by the instance ofmainTypeit fails with match the 
list of exception types given byreasonTypes. | 
| Function | assertResponseFailed | A simple helper to invoke assertWrapperExceptionTypeswith amainTypeofResponseFailed. | 
| Function | assertRequestGenerationFailed | A simple helper to invoke assertWrapperExceptionTypeswith amainTypeofRequestGenerationFailed. | 
| Function | assertRequestTransmissionFailed | A simple helper to invoke assertWrapperExceptionTypeswith amainTypeofRequestTransmissionFailed. | 
| Function | justTransportResponse | No summary | 
| Class | MakeStatefulDispatcherTests | Tests for makeStatefulDispatcher. | 
| Class | HTTPParserRFCComplaintDelimeterTests | _HTTPParserTestsusing standard CR LF newlines. | 
| Class | HTTPParserNonRFCComplaintDelimeterTests | _HTTPParserTestsusing bare LF newlines. | 
| Class | HTTPClientParserTests | Tests for HTTPClientParserwhich is responsible for parsing HTTP response messages. | 
| Class | SlowRequest | SlowRequestis a fake implementation ofRequestwhich 
is easily controlled externally (for example, by code in a test 
method). | 
| Class | SimpleRequest | No summary | 
| Class | HTTP11ClientProtocolTests | Tests for the HTTP 1.1 client protocol implementation, HTTP11ClientProtocol. | 
| Class | StringProducer | StringProduceris a dummy body producer. | 
| Class | RequestTests | Tests for Request. | 
| Class | LengthEnforcingConsumerTests | Tests for LengthEnforcingConsumer. | 
| Class | RequestBodyConsumerTests | Tests for ChunkedEncoderwhich sits between anITransportand a request/response body producer and chunked encodes everything written
to it. | 
| Class | TransportProxyProducerTests | Tests for TransportProxyProducerwhich proxies theIPushProducerinterface of a transport. | 
| Class | ResponseTests | Tests for Response. | 
| Class | _HTTPParserTests | Base test class for HTTPParserwhich is responsible for the bulk of the task of parsing HTTP bytes. | 
Assert that the given Deferred fails
with the exception given by mainType and that the exceptions 
wrapped by the instance of mainType it fails with match the 
list of exception types given by reasonTypes.
This is a helper for testing failures of exceptions which subclass _newclient._WrapperException.
| Parameters | self | A TestCaseinstance which will be used to make the assertions. | 
| deferred | The Deferredwhich
is expected to fail withmainType. | |
| mainType | A _newclient._WrapperExceptionsubclass which will be trapped ondeferred. | |
| reasonTypes | A sequence of exception types which will be trapped on the resulting mainTypeexception instance'sreasonssequence. | |
| Returns | A Deferredwhich fires with themainTypeinstancedeferredfails with, or which fails somehow. | |
A simple helper to invoke assertWrapperExceptionTypes
with a mainType of ResponseFailed.
A simple helper to invoke assertWrapperExceptionTypes
with a mainType of RequestGenerationFailed.
A simple helper to invoke assertWrapperExceptionTypes
with a mainType of RequestTransmissionFailed.
Helper function for creating a Response which uses the given transport. 
All of the other parameters to Response.__init__
are filled with arbitrary values.  Only use this method if you don't care 
about any of them.