mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 11:19:23 +00:00
13 lines
299 B
Python
13 lines
299 B
Python
from netlib import utils
|
|
import socket
|
|
|
|
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"
|