def test_zipfile_folder(self): import os zf = self.zipfile_create() try: zf.writestr(os.sep.join(['foo', 'bar.txt']), 'Hello') _zipfile.ZipFileFolder(zf, 'foo') finally: zf.close()
def get_fixture_folder(self): zf = self.zipfile_get() try: yield _zipfile.ZipFileFolder(zf, 'foo') finally: zf.close()
def create_fixture_folder(self): with self.create_fixture_zipfile() as zf: yield _zipfile.ZipFileFolder(zf, 'foo')