#NEWLINE# def _VerifyFileInTarEndsWith( self , tar , filename , text ) : #NEWLINE# #INDENT# tf = tarfile . open ( tar , 'r:gz' ) #NEWLINE# fd = tf . extractfile ( filename ) #NEWLINE# file_content = fd . read ( ) #NEWLINE# self . assertTrue ( file_content . endswith ( text ) )