aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_http.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-02-27 22:02:52 +0100
committerMaximilian Hils <git@maximilianhils.com>2015-02-27 22:02:52 +0100
commitda1eb94ccd36b31ea7e05c6a4e01dd5a6cf20376 (patch)
tree3e5d2b4b652c0fc80f70a73c34dc8bd75cd63ccd /test/test_http.py
parent63fb43369029d33ce77cb2ce1df397e99494562c (diff)
downloadmitmproxy-da1eb94ccd36b31ea7e05c6a4e01dd5a6cf20376.tar.gz
mitmproxy-da1eb94ccd36b31ea7e05c6a4e01dd5a6cf20376.tar.bz2
mitmproxy-da1eb94ccd36b31ea7e05c6a4e01dd5a6cf20376.zip
100% test coverage :tada:
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 == "/"