(self)
| 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) |
nothing calls this directly
no test coverage detected