#NEWLINE# def _validate_content( self , gtdir , tmpdir , files_to_validate ) : #NEWLINE# #INDENT# for fpath in self : #NEWLINE# #INDENT# with open ( _pjoin ( tmpdir , fpath ) ) as f : #NEWLINE# #INDENT# generated_file_contents = f . read ( ) #NEWLINE# #UNINDENT# with open ( _pjoin ( gtdir , fpath ) ) as f : #NEWLINE# #INDENT# ground_truth_file_contents = f . read ( ) . rstrip ( '\n' ) #NEWLINE# #UNINDENT# self . assertEqual ( generated_file_contents , ground_truth_file_contents )