Example #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)
Example #2
0
def test_conversion():
    eq_(byting.to_bytes(byting.to_binseq("hello world")), "hello world")
Example #3
0
def test_to_bits():
    eq_(byting.to_binseq("A"), "01000001")
    eq_(byting.to_binseq("AC"), "0100000101000011")
Example #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)