

def testExportFile(self):
    'Check we can export a file without errors.'
    with utils.TempDirectory() as tmpdir:
        export_utils.CopyAFF4ToLocal(self.out.Add('testfile1'), tmpdir, overwrite=True, token=self.token)
        expected_outdir = os.path.join(tmpdir, self.out.Path()[1:])
        self.assertTrue(('testfile1' in os.listdir(expected_outdir)))

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