def test_refragment(bd):
    byts = bytes('1234')
    bd.add(byts)
    assert bd.byteSz == len(byts)

    for ordinal, byt in enumerate(byts):
        assert bd.get(1) == byt
        assert bd.byteSz == len(byts) - 1 - ordinal

    assert bd.byteSz == 0
dataset/ETHPy150Open wal-e/wal-e/tests/test_bytedeque.py/test_refragment/swapped operands of `-`