#NEWLINE# def test_duplicate_values( lrucache , slabutil ) : #NEWLINE# #INDENT# 'Test insertion of duplicate values in a namespace.' #NEWLINE# values = range ( _SLABSZ ) #NEWLINE# keys = map ( str , values ) #NEWLINE# slabitems = zip ( keys , values ) #NEWLINE# slabdesc = slabutil_make_slab ( _NS , slabitems ) #NEWLINE# lrucache . insert_slab ( slabdesc ) #NEWLINE# slabdesc2 = slabutil_make_slab ( _NS , slabitems ) #NEWLINE# with pytest . raises ( ValueError ) : #NEWLINE# #INDENT# lrucache . insert_slab ( slabdesc )