class FrozenHTTPMessageTestsMixIn(ABC): (source)
Known subclasses: klein.test.test_request.FrozenHTTPRequestTests
, klein.test.test_response.FrozenHTTPResponseTests
Mix-In class for implementations of IHTTPMessage.
Class Method | message |
Return a new instance of an IHTTPMessage implementation using the given bytes as the message body. |
Class Method | message |
Return a new instance of an IHTTPMessage implementation using a fount containing the given bytes as the message body. |
Method | test_body |
bodyAsBytes returns the same bytes given to __init__. |
Method | test_body |
bodyAsBytes called twice returns the same object both times, when created from bytes. |
Method | test_body |
bodyAsBytes returns the bytes from the fount given to __init__. |
Method | test_body |
bodyAsBytes called twice returns the same object both times, when created from a fount. |
Method | test_body |
bodyAsFount returns a fount with the same bytes given to __init__. |
Method | test_body |
bodyAsFount raises FountAlreadyAccessedError if called more than once, when created from bytes. |
Method | test_body |
bodyAsBytes returns the bytes from the fount given to __init__. |
Method | test_body |
bodyAsFount raises FountAlreadyAccessedError if called more than once, when created from a fount. |
Method | test |
Message instance implements IHTTPMessage . |
klein.test.test_request.FrozenHTTPRequestTests
, klein.test.test_response.FrozenHTTPResponseTests
Return a new instance of an IHTTPMessage
implementation using the given bytes as the message body.
Parameters | |
data:bytes | Undocumented |
Returns | |
IHTTPMessage | Undocumented |
Return a new instance of an IHTTPMessage
implementation using a fount containing the given bytes as the message body.
Parameters | |
data:bytes | Undocumented |
Returns | |
IHTTPMessage | Undocumented |
bodyAsBytes called twice returns the same object both times, when created from bytes.
Parameters | |
data:bytes | Undocumented |
bodyAsBytes called twice returns the same object both times, when created from a fount.
Parameters | |
data:bytes | Undocumented |
bodyAsFount raises FountAlreadyAccessedError
if called more than once, when created from bytes.
Parameters | |
data:bytes | Undocumented |
bodyAsFount raises FountAlreadyAccessedError
if called more than once, when created from a fount.
Parameters | |
data:bytes | Undocumented |