class documentation
class FrozenHTTPHeadersTests(GetValuesTestsMixIn, TestCase): (source)
Tests for FrozenHTTPHeaders
.
Method | get |
Look up the values for the given header name from the given raw headers. |
Method | test_default |
FrozenHTTPHeaders.rawHeaders is empty by default. |
Method | test |
FrozenHTTPHeaders implements IHTTPHeaders . |
Inherited from GetValuesTestsMixIn
:
Method | header |
Test hook for the normalization of header text values, which is a behavior Twisted has changed after version 18.9.0. |
Method | test_get |
getValues returns an iterable of bytes values for the given bytes header name. |
Method | test_get |
getValues raises TypeError when the given header name is of an unknown type. |
Method | test_get |
getValues returns an iterable of str values for the given str header name. |
Method | test_get |
getValues returns an iterable of str values for the given str header name. |
Inherited from TestCase
:
Method | assert |
Assert that a object provides an interface. |
Look up the values for the given header name from the given raw headers.
This is called by the other tests in this mix-in class to allow test cases that use it to specify how to perform this look-up in the implementation being tested.
Parameters | |
rawRawHeaders | Undocumented |
name:AnyStr | Undocumented |
Returns | |
Iterable[ | Undocumented |