@setup_cache
def test_evict(cache):
    colors = ('red', 'blue', 'yellow')

    for value in range(90):
        assert cache.set(value, value, tag=colors[len(colors) % value])

    assert len(cache) == 90
    assert cache.evict('red') == 30
    assert len(cache) == 60
    assert len(cache.check()) == 0
dataset/ETHPy150Open grantjenks/python-diskcache/tests/test_fanout.py/test_evict/swapped operands of `%`