#NEWLINE# @ classmethod #NEWLINE# def add_file_case( cls , source_file , expected_results_file ) : #NEWLINE# #INDENT# 'Add a test case that compares the content\n        of a generated file with the expected results.\n\n        ' #NEWLINE# extension = os . path . splitext ( expected_results_file ) [ 1 ] [ 1 : ] #NEWLINE# def test_function( self ) : #NEWLINE# #INDENT# ( actual , expected ) = self . convert ( source_file , ( ( source_file + '.' ) + extension ) , ( ( source_file + '.' ) + extension ) , '--bare' ) #NEWLINE# self . assertMultiLineEqual ( expected , actual ) #NEWLINE# #UNINDENT# func_name = ( ( ( 'test_' + source_file . replace ( '.' , '_' ) ) + '_to_' ) + extension ) #NEWLINE# setattr ( cls , func_name , test_function )