def test_stripping_related_headers(self): headers = [ ('one', 'two'), ('three', 'four'), ('five', 'six'), ('connection', 'close, three, five') ] stripped = [('one', 'two')] assert h2_safe_headers(headers) == stripped
def test_stripping_connection_header(self): headers = [('one', 'two'), ('connection', 'close')] stripped = [('one', 'two')] assert h2_safe_headers(headers) == stripped