def test_normalize_partial_url(self): url = ( "https://foo.bar.example.com" ) expected_normalized_url = ( "https://foo.bar.example.com" ) actual_normalized_url = normalize_url(url) assert actual_normalized_url == expected_normalized_url
def test_normalize_url(self): url = "https://example.com/path/?two=3&one=1&two=2" expected_normalized_url = "https://example.com/path/?one=1&two=3&two=2" actual_normalized_url = normalize_url(url) assert actual_normalized_url == expected_normalized_url