Example #1
0
def test_checksum_read(bs, typ, value):
    assert checksum_rw.read(BytesIO(bytearray(bs))) == (typ, value)
Example #2
0
def test_checksum_read(bs, typ, value):
    assert checksum_rw.read(BytesIO(bytearray(bs))) == (typ, value)
Example #3
0
def test_chucksum_round_trip(typ, value):
    buff = checksum_rw.write((typ, value), BytesIO()).getvalue()
    assert (typ, value) == checksum_rw.read(BytesIO(buff))
Example #4
0
def test_chucksum_round_trip(typ, value):
    buff = checksum_rw.write((typ, value), BytesIO()).getvalue()
    assert (typ, value) == checksum_rw.read(BytesIO(buff))