def test_datastore_slab_inline_fetch(datastore):
    _slab_key = 'NL8'
    _slab_start = __PER_SLAB
    # Create a slab.
    slab = []
    slabkeys = range(_slab_start, _slab_start + __PER_SLAB)
    for key in slabkeys:
        sk = str(key)
        if key % 2 == 0:
            n = O.new_osm_element(C.NODE, sk)
            slab.append((C.SLAB_INLINE, n))

    insert_key(_slab_key, datastore.encode(slab))

    c = 0
    i = 0
    for key in slabkeys:
        if key % 2 == 0:
            se,sn = slab[i]
            n = datastore.fetch(C.NODE, str(key))
            assert n == sn
            i += 1
        else:
            v = datastore.fetch(C.NODE, str(key))
            assert v is None
        c = c + 1
Registers a component in the registry.
dataset/ETHPy150Open MapQuest/mapquest-osm-server/src/python/tests/test_dsmembase.py/test_datastore_slab_inline_fetch--crossover with--dataset/ETHPy150Open owtf/owtf/framework/dependency_management/dependency_resolver.py/ServiceLocator.register_component