#NEWLINE# def test_correlate_dicts_missing_key( self ) : #NEWLINE# #INDENT# d1 = { #NEWLINE# #INDENT# 'name' : 'Fred' , #NEWLINE# 'age' : 41 , #NEWLINE# #UNINDENT# } #NEWLINE# with raises ( KeyError ) as exc_info : #NEWLINE# #INDENT# correlate_dicts ( [ self ] , 'missing' ) #NEWLINE# #UNINDENT# assert ( "element 0 contains no key 'missing'" in str ( exc_info . value ) )