예제 #1
0
def _create_history(options, input_seq):
    if options.bytes:
        seq = byting.to_binseq(input_seq)
    else:
        seq = input_seq
    return formatting.to_bits(seq)
예제 #2
0
def test_conversion():
    eq_(byting.to_bytes(byting.to_binseq("hello world")), "hello world")
예제 #3
0
def test_to_bits():
    eq_(byting.to_binseq("A"), "01000001")
    eq_(byting.to_binseq("AC"), "0100000101000011")
예제 #4
0
def _create_history(options, input_seq):
    if options.bytes:
        seq = byting.to_binseq(input_seq)
    else:
        seq = input_seq
    return formatting.to_bits(seq)