class documentation
class ResponseTestMixin: (source)
Known subclasses: twisted.web.test.test_http.ChunkingTests
, twisted.web.test.test_http.Expect100ContinueServerTests
, twisted.web.test.test_http.HTTP1_0Tests
, twisted.web.test.test_http.PipeliningBodyTests
, twisted.web.test.test_http.RequestTests
A mixin that provides a simple means of comparing an actual response string to an expected response string by performing the minimal parsing.
Method | assert |
Assert that the responses matches the expected responses. |
overridden in
twisted.web.test.test_http.HTTP0_9Tests
Assert that the responses matches the expected responses.
Parameters | |
responses:bytes | The bytes sent in response to one or more requests. |
expected:list of tuple of bytes | The expected values for the responses. Each tuple element of the list represents one response. Each byte string element of the tuple is a full header line without delimiter, except for the last element which gives the full response body. |