mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-24 04:14:57 +08:00
minor fixes
This commit is contained in:
@@ -16,11 +16,11 @@ def test_native():
|
||||
|
||||
|
||||
def test_clean_bin():
|
||||
assert strutils.clean_bin(b"one") == b"one"
|
||||
assert strutils.clean_bin(b"\00ne") == b".ne"
|
||||
assert strutils.clean_bin(b"\nne") == b"\nne"
|
||||
assert strutils.clean_bin(b"\nne", False) == b".ne"
|
||||
assert strutils.clean_bin(u"\u2605".encode("utf8")) == b"..."
|
||||
assert strutils.clean_bin(b"one") == u"one"
|
||||
assert strutils.clean_bin(b"\00ne") == u".ne"
|
||||
assert strutils.clean_bin(b"\nne") == u"\nne"
|
||||
assert strutils.clean_bin(b"\nne", False) == u".ne"
|
||||
assert strutils.clean_bin(u"\u2605".encode("utf8")) == u"..."
|
||||
|
||||
assert strutils.clean_bin(u"one") == u"one"
|
||||
assert strutils.clean_bin(u"\00ne") == u".ne"
|
||||
|
||||
Reference in New Issue
Block a user