diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-04-02 14:38:33 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-04-02 14:38:33 +0200 |
commit | 806aa0f41c7816b2859a6961939ed19499b73fe7 (patch) | |
tree | 069ce4a304fe3fab07def4a5daa3068c0140f2d8 /test/netlib/test_utils.py | |
parent | 4ee8808b44c5a3377ac2c1dfc4ba5fb10d559ef5 (diff) | |
download | mitmproxy-806aa0f41c7816b2859a6961939ed19499b73fe7.tar.gz mitmproxy-806aa0f41c7816b2859a6961939ed19499b73fe7.tar.bz2 mitmproxy-806aa0f41c7816b2859a6961939ed19499b73fe7.zip |
improve .replace() and move it into netlib
Diffstat (limited to 'test/netlib/test_utils.py')
-rw-r--r-- | test/netlib/test_utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/netlib/test_utils.py b/test/netlib/test_utils.py index fcb63eb2..be2a59fc 100644 --- a/test/netlib/test_utils.py +++ b/test/netlib/test_utils.py @@ -166,3 +166,7 @@ class TestSerializable: a.set_state(1) assert a.i == 1 assert b.i == 42 + + +def test_safe_subn(): + assert utils.safe_subn("foo", u"bar", "\xc2foo") |