#NEWLINE# def test_check_incorrect_method_name( self ) : #NEWLINE# #INDENT# condition = { #NEWLINE# #INDENT# 'name' : 'food' , #NEWLINE# 'operator' : 'equal_to' , #NEWLINE# 'value' : 'm' , #NEWLINE# #UNINDENT# } #NEWLINE# err_string = 'Variable food is not defined in class SomeVariables' #NEWLINE# with self . assertRaisesRegexp ( AssertionError , err_string ) : #NEWLINE# #INDENT# check_condition ( self , SomeVariables ( ) )