diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-06-02 12:53:12 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-06-02 12:53:12 +1200 |
commit | 31012d782f64727de1d86662139e9ec6618043c5 (patch) | |
tree | 3887c8e11e30a758e82afdabe764a5e5f4f13e8d /test | |
parent | 3d9dbd6a4940cc7fe6f65cbb257aaeacd1eab1ee (diff) | |
download | mitmproxy-31012d782f64727de1d86662139e9ec6618043c5.tar.gz mitmproxy-31012d782f64727de1d86662139e9ec6618043c5.tar.bz2 mitmproxy-31012d782f64727de1d86662139e9ec6618043c5.zip |
Consolidate some functions to strutils.bytes_to_escaped_str
Diffstat (limited to 'test')
-rw-r--r-- | test/pathod/test_utils.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/test/pathod/test_utils.py b/test/pathod/test_utils.py index ab4abbae..a46a523a 100644 --- a/test/pathod/test_utils.py +++ b/test/pathod/test_utils.py @@ -1,8 +1,6 @@ from pathod import utils import tutils -import six - def test_membool(): m = utils.MemBool() @@ -20,12 +18,3 @@ def test_parse_anchor_spec(): def test_data_path(): tutils.raises(ValueError, utils.data.path, "nonexistent") - - -def test_escape_unprintables(): - s = bytes(range(256)) - if six.PY2: - s = "".join([chr(i) for i in range(255)]) - e = utils.escape_unprintables(s) - assert e.encode('ascii') - assert "PATHOD_MARKER" not in e |