Esempio n. 1
0
 def test_zip_utils(self):
     filedata = get_file_content('example.zip')
     reader = utils.read_zip(filedata)
     fnames = utils.get_zip_filenames(reader)
     for i in EXPECTED_FILENAMES:
         self.assertTrue(i in fnames)
 def list_filenames(self):
     return get_zip_filenames(self.content)
 def test_zip_utils(self):
     filedata = get_file_content('example.zip')
     reader = utils.read_zip(filedata)
     fnames = utils.get_zip_filenames(reader)
     for i in EXPECTED_FILENAMES:
         self.assertTrue(i in fnames)