def test_duplicate_slabdesc(lrucache, slabutil):

    values = range(_SLABSZ)
    keys = map(str, values)
    slabitems = zip(keys, values)
    slabdesc = slabutil_make_slab(_NS, slabitems)

    lrucache.insert_slab(slabdesc)
    with pytest.raises(ValueError):
        lrucache.insert_slab(slabdesc)
Test insertion of a duplicate slab descriptor.
dataset/ETHPy150Open MapQuest/mapquest-osm-server/src/python/tests/test_lrucache.py/test_duplicate_slabdesc