def _create_history(options, input_seq): if options.bytes: seq = byting.to_binseq(input_seq) else: seq = input_seq return formatting.to_bits(seq)
def test_conversion(): eq_(byting.to_bytes(byting.to_binseq("hello world")), "hello world")
def test_to_bits(): eq_(byting.to_binseq("A"), "01000001") eq_(byting.to_binseq("AC"), "0100000101000011")