#NEWLINE# def _VerifyTarHas( self , tar , expected ) : #NEWLINE# #INDENT# p = subprocess . Popen ( [ ( 'tar -tf %s' % tar ) ] , stdout = subprocess . PIPE , shell = True ) #NEWLINE# found = p . communicate ( ) [ 0 ] . split ( '\n' ) #NEWLINE# if ( './' in found ) : #NEWLINE# #INDENT# found . remove ( './' ) #NEWLINE# #UNINDENT# if ( '' in found ) : #NEWLINE# #INDENT# found . remove ( '' ) #NEWLINE# #UNINDENT# self . _AssertListEqual ( expected , tar )