diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-09-24 11:21:12 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-09-24 11:21:12 +1200 |
commit | 0d59fd7e01ba74df901cae6f5f2d058235fa1c33 (patch) | |
tree | d4fe874bfc149bf12597060b7dd934c177915cdb /test | |
parent | 21f74efa10374d99df29a3eb666370b28b30d5b3 (diff) | |
download | mitmproxy-0d59fd7e01ba74df901cae6f5f2d058235fa1c33.tar.gz mitmproxy-0d59fd7e01ba74df901cae6f5f2d058235fa1c33.tar.bz2 mitmproxy-0d59fd7e01ba74df901cae6f5f2d058235fa1c33.zip |
Move cleanBin and hexdump into netutils.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_utils.py | 11 |
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") |