def testDirlistOutput( self ): ''' Dirlist : Testing file content output function ''' dl = Dirlist( Data1Dir ) DirlistData = dl.createDirlist() output = dl.generateOutput( DirlistData ) self.assertEqual( output, Data1Output, "Output does not match expectations" )
def testGetDirlistFromOutput( self ): ''' Dirlist : test use the output to return to the processed data ''' dl = Dirlist( Data1Dir ) DirlistData = dl.createDirlist() Output = dl.generateOutput( DirlistData ) self.assertEqual( dl.extractDirlist( Output ), DirlistData, "Extracted data does not match input" )