예제 #1
0
def test_checksum_read(bs, typ, value):
    assert checksum_rw.read(BytesIO(bytearray(bs))) == (typ, value)
예제 #2
0
def test_checksum_read(bs, typ, value):
    assert checksum_rw.read(BytesIO(bytearray(bs))) == (typ, value)
예제 #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))
예제 #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))