aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_http.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_http.py')
-rw-r--r--test/test_http.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_http.py b/test/test_http.py
index e3e92a1e..fed60946 100644
--- a/test/test_http.py
+++ b/test/test_http.py
@@ -325,6 +325,12 @@ def test_parse_url():
assert po == 80
assert pa == "/bar"
+ s, h, po, pa = http.parse_url("http://user:pass@foo/bar")
+ assert s == "http"
+ assert h == "foo"
+ assert po == 80
+ assert pa == "/bar"
+
s, h, po, pa = http.parse_url("http://foo")
assert pa == "/"