mitmproxy/test/test_utils.py
2014-06-25 21:16:47 +02:00

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"