Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Oct 17, 2024
1 parent 3ae3f31 commit 9df97bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ def test_origin():
assert URL("http://example.com:8888") == url.origin()


def test_origin_is_self():
url = URL("http://example.com:8888")
assert url.origin() is url


def test_origin_with_no_auth():
url = URL("http://example.com:8888/path/to?a=1&b=2")
assert URL("http://example.com:8888") == url.origin()
Expand Down

0 comments on commit 9df97bc

Please sign in to comment.