def _format(data): for offset, hexa, s in hexdump(data): yield [ ("offset", offset + " "), ("text", hexa + " "), ("text", s) ]
def test_hexdump(): assert utils.hexdump("one\0" * 10)
def test_hexdump(): assert list(utils.hexdump(b"one\0" * 10))