#NEWLINE# def test_repeatable_dict_deletion( ) : #NEWLINE# #INDENT# d = http . RepeatableDict ( [ ( 'foo' , 'bar' ) , ( 'fOo' , 'fuzz' ) , ( 'bar' , 'baz' ) ] , case_insensitive = True ) #NEWLINE# assert ( 'foo' in d ) #NEWLINE# del d [ 'foo' ] #NEWLINE# assert ( not ( 'foo' in d ) ) #NEWLINE# with pytest . raises ( KeyError ) : #NEWLINE# #INDENT# x = d [ 'foo' ] #NEWLINE# #UNINDENT# with pytest . raises ( KeyError ) : #NEWLINE# #INDENT# x = d [ 'fOo' ] #NEWLINE# #UNINDENT# assert ( d [ 'bar' ] == 'baz' ) #NEWLINE# assert ( d . all_vals ( 'foo' ) == [ ] )