class documentation

class HasHeadersTests(TestCase): (source)

View In Hierarchy

Tests for :obj:`HasHeaders`.

Method test_bytes_encoded_forms The :obj:`HasHeaders` equality function compares the bytes-encoded forms of both sets of headers.
Method test_case_insensitive_keys The :obj:`HasHeaders` equality function ignores the case of the header keys.
Method test_case_sensitive_values The :obj:`HasHeaders` equality function does care about the case of the header value.
Method test_equality_and_strict_subsets_succeed The :obj:`HasHeaders` returns True if both sets of headers are equivalent, or the first is a strict subset of the second.
Method test_partial_or_zero_intersection_subsets_fail The :obj:`HasHeaders` returns False if both sets of headers overlap but the first is not a strict subset of the second. It also returns False if there is no overlap.
Method test_repr :obj:`HasHeaders` returns a nice string repr.
def test_bytes_encoded_forms(self): (source)

The :obj:`HasHeaders` equality function compares the bytes-encoded forms of both sets of headers.

def test_case_insensitive_keys(self): (source)

The :obj:`HasHeaders` equality function ignores the case of the header keys.

def test_case_sensitive_values(self): (source)

The :obj:`HasHeaders` equality function does care about the case of the header value.

def test_equality_and_strict_subsets_succeed(self): (source)

The :obj:`HasHeaders` returns True if both sets of headers are equivalent, or the first is a strict subset of the second.

def test_partial_or_zero_intersection_subsets_fail(self): (source)

The :obj:`HasHeaders` returns False if both sets of headers overlap but the first is not a strict subset of the second. It also returns False if there is no overlap.

def test_repr(self): (source)

:obj:`HasHeaders` returns a nice string repr.