#NEWLINE# def assertExtractedStructure( self , outputFile , dirDict ) : #NEWLINE# #INDENT# '\n        Assert that a tarfile content is equivalent to one described by a dict.\n\n        @param outputFile: The tar file built by L{DistributionBuilder}.\n        @type outputFile: L{FilePath}.\n        @param dirDict: The dict that should describe the contents of the\n            directory. It should be the same structure as the C{dirDict}\n            parameter to L{createStructure}.\n        @type dirDict: C{dict}\n        ' #NEWLINE# tarFile = tarfile . TarFile . open ( outputFile . path , 'r:bz2' ) #NEWLINE# extracted = FilePath ( self . mktemp ( ) ) #NEWLINE# extracted . createDirectory ( ) #NEWLINE# for info in tarFile : #NEWLINE# #INDENT# tarFile . extract ( info , path = extracted . path ) #NEWLINE# #UNINDENT# self . assertStructure ( extracted . children ( ) [ 0 ] , dirDict )