aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_utils.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-08-01 10:40:19 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-08-01 14:37:32 +0200
commitdb02553e2afee044faac898d12bd8d1adadbcd21 (patch)
tree1e5910599b7b47c527528f03f896efd2fbf7c907 /test/test_utils.py
parent8a051511706e2e62c32e0f70e05ecab11d444b6f (diff)
downloadmitmproxy-db02553e2afee044faac898d12bd8d1adadbcd21.tar.gz
mitmproxy-db02553e2afee044faac898d12bd8d1adadbcd21.tar.bz2
mitmproxy-db02553e2afee044faac898d12bd8d1adadbcd21.zip
move code from mitmproxy to netlib
Diffstat (limited to 'test/test_utils.py')
-rw-r--r--test/test_utils.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index 0c514f5d..0ee23b97 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -44,11 +44,6 @@ def test_pretty_json():
assert not utils.pretty_json("moo")
-def test_urldecode():
- s = "one=two&three=four"
- assert len(utils.urldecode(s)) == 2
-
-
def test_multipartdecode():
boundary = 'somefancyboundary'
headers = odict.ODict(
@@ -116,13 +111,6 @@ def test_LRUCache():
assert len(cache.cache) == 2
-def test_unparse_url():
- assert utils.unparse_url("http", "foo.com", 99, "") == "http://foo.com:99"
- assert utils.unparse_url("http", "foo.com", 80, "") == "http://foo.com"
- assert utils.unparse_url("https", "foo.com", 80, "") == "https://foo.com:80"
- assert utils.unparse_url("https", "foo.com", 443, "") == "https://foo.com"
-
-
def test_parse_size():
assert not utils.parse_size("")
assert utils.parse_size("1") == 1
@@ -144,7 +132,3 @@ def test_parse_content_type():
def test_safe_subn():
assert utils.safe_subn("foo", u"bar", "\xc2foo")
-
-
-def test_urlencode():
- assert utils.urlencode([('foo', 'bar')])