#NEWLINE# def test_get_nonexistent_element( lrucache , slabutil ) : #NEWLINE# #INDENT# 'Test that a missing keys is shown as not-present.' #NEWLINE# values = range ( 0 , _SLABSZ , 2 ) #NEWLINE# keys = map ( str , values ) #NEWLINE# slabitems = zip ( keys , values ) #NEWLINE# slabdesc = slabutil_make_slab ( _NS , slabitems ) #NEWLINE# lrucache . insert_slab ( slabdesc ) #NEWLINE# ( st , v ) = lrucache . get ( _NS , '1' ) #NEWLINE# assert ( not st ) #NEWLINE# assert ( st == '1' )