diff options
author | Aldo Cortesi <aldo@corte.si> | 2016-06-02 13:14:56 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@corte.si> | 2016-06-02 13:14:56 +1200 |
commit | 07f7905f9182ad0098a5a2e37d40ce9b27298380 (patch) | |
tree | 76ba04357353645f49e0f4bd8d835e471239b54b /test/pathod/test_utils.py | |
parent | eaa3b308f7bb48256ccf56ea07d008fa5f9dd6ad (diff) | |
parent | 09da1febbd9beac5ef5650274899439f5ce10e98 (diff) | |
download | mitmproxy-07f7905f9182ad0098a5a2e37d40ce9b27298380.tar.gz mitmproxy-07f7905f9182ad0098a5a2e37d40ce9b27298380.tar.bz2 mitmproxy-07f7905f9182ad0098a5a2e37d40ce9b27298380.zip |
Merge pull request #1191 from cortesi/utils
Utils reorganisation
Diffstat (limited to 'test/pathod/test_utils.py')
-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 |