mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 11:19:23 +00:00
14 lines
287 B
Python
14 lines
287 B
Python
|
from netlib import utils
|
||
|
|
||
|
|
||
|
def test_hexdump():
|
||
|
assert utils.hexdump("one\0"*10)
|
||
|
|
||
|
|
||
|
def test_cleanBin():
|
||
|
assert utils.cleanBin("one") == "one"
|
||
|
assert utils.cleanBin("\00ne") == ".ne"
|
||
|
assert utils.cleanBin("\nne") == "\nne"
|
||
|
assert utils.cleanBin("\nne", True) == ".ne"
|
||
|
|