Exemplo n.º 1
0
 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()
Exemplo n.º 2
0
 def get_fixture_folder(self):
     zf = self.zipfile_get()
     try:
         yield _zipfile.ZipFileFolder(zf, 'foo')
     finally:
         zf.close()
Exemplo n.º 3
0
 def create_fixture_folder(self):
     with self.create_fixture_zipfile() as zf:
         yield _zipfile.ZipFileFolder(zf, 'foo')