class documentation
class FrozenHTTPResponseTests(FrozenHTTPMessageTestsMixIn, TestCase): (source)
Tests for FrozenHTTPResponse
.
Class Method | message |
Return a new instance of an IHTTPMessage implementation using the given bytes as the message body. |
Static Method | response |
Undocumented |
Method | test_init |
FrozenHTTPResponse raises TypeError when given a body of an unknown type. |
Method | test |
FrozenHTTPResponse implements IHTTPResponse . |
Inherited from FrozenHTTPMessageTestsMixIn
:
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 . |
Inherited from TestCase
:
Method | assert |
Assert that a object provides an interface. |
Return a new instance of an IHTTPMessage
implementation using the given bytes as the message body.
Parameters | |
data:bytes | Undocumented |
Returns | |
IHTTPMessage | Undocumented |