#NEWLINE# def file_has_this_content( path , content , encoding = 'utf8' ) : #NEWLINE# #INDENT# 'True if the file is identical to the content.\n\n    When comparing two files it is best to use the files_are_identical\n    function.\n    ' #NEWLINE# with io . open ( path , 'rt' , encoding = encoding ) as f : #NEWLINE# #INDENT# indeed = ( content == f . read ( ) ) #NEWLINE# #UNINDENT# return content