class documentation

class RawHeadersConversionTests(TestCase): (source)

View In Hierarchy

Tests for normalizeRawHeaders.

Method test_pairNameText normalizeRawHeaders converts ISO-8859-1-encodable text names into bytes.
Method test_pairValueText normalizeRawHeaders converts ISO-8859-1-encodable text values into bytes.
Method test_pairWrongLength normalizeRawHeaders raises ValueError if the headerPairs argument is not an iterable of 2-item iterables.

Inherited from TestCase:

Method assertProvides Assert that a object provides an interface.
@given(latin1_text())
def test_pairNameText(self, name): (source)

normalizeRawHeaders converts ISO-8859-1-encodable text names into bytes.

Parameters
name:strUndocumented
@given(latin1_text())
def test_pairValueText(self, value): (source)

normalizeRawHeaders converts ISO-8859-1-encodable text values into bytes.

Parameters
value:strUndocumented
def test_pairWrongLength(self): (source)

normalizeRawHeaders raises ValueError if the headerPairs argument is not an iterable of 2-item iterables.