#NEWLINE# def assertError( self , field , error , validator = None ) : #NEWLINE# #INDENT# if ( validator is None ) : #NEWLINE# #INDENT# validator = self . validator #NEWLINE# #UNINDENT# self . assertTrue ( ( error in validator . errors . get ( error , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) )