Skip to content

Commit 8e19741

Browse files
felipeboffnunesFelipe Boff Nunes
andauthored
unit test Issue 91 is fixed (#198)
* unit test Issue 91 is fixed * update test * reduce size url * develop, commit, fail black, adjust, repeat... Co-authored-by: Felipe Boff Nunes <[email protected]>
1 parent 1dddddb commit 8e19741

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_url.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,12 @@ def test_normalize_percent_encoding_in_paths(self):
876876
"http://www.example.com/a%A3do?q=r%E9sum%E9",
877877
)
878878

879+
url = "https://example.com/a%23b%2cc#bash"
880+
canonical = canonicalize_url(url)
881+
# %23 is not accidentally interpreted as a URL fragment separator
882+
self.assertEqual(canonical, "https://example.com/a%23b,c")
883+
self.assertEqual(canonical, canonicalize_url(canonical))
884+
879885
def test_normalize_percent_encoding_in_query_arguments(self):
880886
self.assertEqual(
881887
canonicalize_url("http://www.example.com/do?k=b%a3"),

0 commit comments

Comments
 (0)