#NEWLINE# def test_large_verbosedict( ) : #NEWLINE# #INDENT# expected_sting = "You tried to access the key 'a' which does not exist.  There are 100 extant keys, which is too many to show you" #NEWLINE# dd = core . verbosedict ( ) #NEWLINE# for j in range ( 100 ) : #NEWLINE# #INDENT# dd [ j ] = j #NEWLINE# #UNINDENT# for j in range ( 100 ) : #NEWLINE# #INDENT# assert_equal ( dd [ j ] , j ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# e [ 'a' ] #NEWLINE# #UNINDENT# except KeyError as e : #NEWLINE# #INDENT# assert_equal ( eval ( six . text_type ( e ) ) , expected_sting ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert False