Assert parse_url normalizes the scheme/host, and only the scheme/host
(
self, url: str, expected_normalized_url: str
)
| 210 | ], |
| 211 | ) |
| 212 | def test_parse_url_normalization( |
| 213 | self, url: str, expected_normalized_url: str |
| 214 | ) -> None: |
| 215 | """Assert parse_url normalizes the scheme/host, and only the scheme/host""" |
| 216 | actual_normalized_url = parse_url(url).url |
| 217 | assert actual_normalized_url == expected_normalized_url |
| 218 | |
| 219 | @pytest.mark.parametrize("char", [chr(i) for i in range(0x00, 0x21)] + ["\x7f"]) |
| 220 | def test_control_characters_are_percent_encoded(self, char: str) -> None: |
nothing calls this directly
no test coverage detected