

def testDownloadCollection(self):
    'Check we can download files references in RDFValueCollection.'
    fd = aff4.FACTORY.Create('aff4:/testcoll', 'RDFValueCollection', token=self.token)
    fd.Add(rdfvalue.RDFURN(self.out.Add('testfile1')))
    fd.Add(rdf_client.StatEntry(aff4path=self.out.Add('testfile2')))
    fd.Add(file_finder.FileFinderResult(stat_entry=rdf_client.StatEntry(aff4path=self.out.Add('testfile5'))))
    fd.Add(collectors.ArtifactFilesDownloaderResult(downloaded_file=rdf_client.StatEntry(aff4path=self.out.Add('testfile6'))))
    fd.Close()
    self._VerifyDownload()

dataset/ETHPy150Open google/grr/grr/lib/export_utils_test.py TestExports.testDownloadCollection/original