Skip to content

Commit

Permalink
Add more URL subtraction tests (#1385)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Oct 24, 2024
1 parent 3a14e46 commit cb550b7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,18 @@ def test_str():
[
("http://example.com/path/to", "http://example.com/", "path/to"),
("http://example.com/path/to", "http://example.com/spam", "path/to"),
(
"http://example.com/////path/////to",
"http://example.com/////spam",
"path/to",
),
("http://example.com/this/is/a/test", "http://example.com/this/", "is/a/test"),
(
"http://example.com/this/./is/a/test",
"http://example.com/this/",
"is/a/test",
),
("http://example.com/this/is/../a//test", "http://example.com/this/", "a/test"),
("http://example.com/path/to", "http://example.com/spam/", "../path/to"),
("http://example.com/path", "http://example.com/path/to/", ".."),
("http://example.com/", "http://example.com/", "."),
Expand Down

0 comments on commit cb550b7

Please sign in to comment.