Skip to content

Commit cb550b7

Browse files
authored
Add more URL subtraction tests (#1385)
1 parent 3a14e46 commit cb550b7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_url.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,18 @@ def test_str():
6666
[
6767
("http://example.com/path/to", "http://example.com/", "path/to"),
6868
("http://example.com/path/to", "http://example.com/spam", "path/to"),
69+
(
70+
"http://example.com/////path/////to",
71+
"http://example.com/////spam",
72+
"path/to",
73+
),
74+
("http://example.com/this/is/a/test", "http://example.com/this/", "is/a/test"),
75+
(
76+
"http://example.com/this/./is/a/test",
77+
"http://example.com/this/",
78+
"is/a/test",
79+
),
80+
("http://example.com/this/is/../a//test", "http://example.com/this/", "a/test"),
6981
("http://example.com/path/to", "http://example.com/spam/", "../path/to"),
7082
("http://example.com/path", "http://example.com/path/to/", ".."),
7183
("http://example.com/", "http://example.com/", "."),

0 commit comments

Comments
 (0)