diff --git a/tests/test_url.py b/tests/test_url.py index 489c33105..f7cb56e0c 100644 --- a/tests/test_url.py +++ b/tests/test_url.py @@ -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()