#NEWLINE# def check_result( self , result , expected , klass = None ) : #NEWLINE# #INDENT# klass = ( klass or self . klass ) #NEWLINE# assertIsInstance ( result , klass ) #NEWLINE# self . assertEqual ( result , expected )