

def testDownloadCollectionIgnoresArtifactResultsWithoutFiles(self):
    fd = aff4.FACTORY.Create('aff4:/testcoll', 'RDFValueCollection', token=tmpdir.token)
    fd.Add(collectors.ArtifactFilesDownloaderResult())
    fd.Close()
    with utils.TempDirectory() as tmpdir:
        export_utils.DownloadCollection('aff4:/testcoll', tmpdir, overwrite=True, dump_client_info=True, token=self.token, max_threads=2)
        expected_outdir = os.path.join(tmpdir, self.out.Path()[1:])
        self.assertFalse(os.path.exists(expected_outdir))

dataset/ETHPy150Open google/grr/grr/lib/export_utils_test.py TestExports.testDownloadCollectionIgnoresArtifactResultsWithoutFiles/VarMisuse@24/45 `self`->`tmpdir`