def test_tuple_for_index():
    for size in [100, 500, 720, 1000]:
        bcv = make_bcv(size)
        for i in range(size):
            index, the_hash, the_work = bcv.tuple_for_index(i)
            assert index == i
        bcv.winnow()
        for i in range(size):
            index, the_hash, the_work = bcv.tuple_for_index(i)
            assert i <= index
dataset/ETHPy150Open richardkiss/pycoinnet/tests/util/test_BlockChainView.py/test_tuple_for_index/swapped operands of `<=`