'Check we can export a file without errors.'

def testExportFile(self):

    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)))
