def test_overflow(slabutil):

    slabs = []
    def _mkslab(i):
        v = [i * _SLABSZ]
        return slabutil_make_slab(_NS, zip(map(str, v), v))

    def _cb(slabkey, slabdesc, seq=[0]):
        n = seq[0]
        assert slabdesc is slabs[n]
        seq[0] = n + 1

    lc = LRUCache(_LRUSZ, _cb)
    for i in xrange(2*_LRUSZ):
        sl = _mkslab(i)
        slabs.append(sl)
        lc.insert_slab(sl)
Test that slabs overflow in LRU sequence.
dataset/ETHPy150Open MapQuest/mapquest-osm-server/src/python/tests/test_lrucache.py/test_overflow