MCPcopy
hub / github.com/django/django / test_parse_header_name

Method test_parse_header_name

tests/requests_tests/tests.py:1715–1726  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1713 )
1714
1715 def test_parse_header_name(self):
1716 tests = (
1717 ("PATH_INFO", None),
1718 ("HTTP_ACCEPT", "Accept"),
1719 ("HTTP_USER_AGENT", "User-Agent"),
1720 ("HTTP_X_FORWARDED_PROTO", "X-Forwarded-Proto"),
1721 ("CONTENT_TYPE", "Content-Type"),
1722 ("CONTENT_LENGTH", "Content-Length"),
1723 )
1724 for header, expected in tests:
1725 with self.subTest(header=header):
1726 self.assertEqual(HttpHeaders.parse_header_name(header), expected)

Callers

nothing calls this directly

Calls 1

parse_header_nameMethod · 0.80

Tested by

no test coverage detected