aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_utils.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-09-24 11:21:12 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-09-24 11:21:12 +1200
commit0d59fd7e01ba74df901cae6f5f2d058235fa1c33 (patch)
treed4fe874bfc149bf12597060b7dd934c177915cdb /test/test_utils.py
parent21f74efa10374d99df29a3eb666370b28b30d5b3 (diff)
downloadmitmproxy-0d59fd7e01ba74df901cae6f5f2d058235fa1c33.tar.gz
mitmproxy-0d59fd7e01ba74df901cae6f5f2d058235fa1c33.tar.bz2
mitmproxy-0d59fd7e01ba74df901cae6f5f2d058235fa1c33.zip
Move cleanBin and hexdump into netutils.
Diffstat (limited to 'test/test_utils.py')
-rw-r--r--test/test_utils.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index 49312a4b..db6feb4d 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -22,10 +22,6 @@ def test_isXml():
assert utils.isXML(" \n<foo")
-def test_hexdump():
- assert utils.hexdump("one\0"*10)
-
-
def test_del_all():
d = dict(a=1, b=2, c=3)
utils.del_all(d, ["a", "x", "b"])
@@ -125,13 +121,6 @@ def test_parse_content_type():
assert v == ('text', 'html', {'charset': 'UTF-8'})
-def test_cleanBin():
- assert utils.cleanBin("one") == "one"
- assert utils.cleanBin("\00ne") == ".ne"
- assert utils.cleanBin("\nne") == "\nne"
- assert utils.cleanBin("\nne", True) == ".ne"
-
-
def test_safe_subn():
assert utils.safe_subn("foo", u"bar", "\xc2foo")