Lines Matching refs:zinfo
548 zinfo = zipfile.ZipInfo()
550 zinfo.filename = arcname
551 zinfo.external_attr = 0o600 << 16
552 zipfp.writestr(zinfo, content)
606 zinfo = zipfp.getinfo('strfile')
607 self.assertEqual(zinfo.external_attr, 0600 << 16)
1595 zinfo = zipf.filelist[0]
1596 self.assertTrue(zinfo.filename.endswith("/x/"))
1597 self.assertEqual(zinfo.external_attr, (mode << 16) | 0x10)
1599 zinfo = zipf.filelist[1]
1600 self.assertTrue(zinfo.filename, "y/")
1601 self.assertEqual(zinfo.external_attr, (mode << 16) | 0x10)
1603 zinfo = zipf.filelist[0]
1604 self.assertTrue(zinfo.filename.endswith("/x/"))
1605 self.assertEqual(zinfo.external_attr, (mode << 16) | 0x10)
1606 zinfo = zipf.filelist[1]
1607 self.assertTrue(zinfo.filename, "y/")
1608 self.assertEqual(zinfo.external_attr, (mode << 16) | 0x10)
1619 zinfo = zipf.filelist[0]
1620 self.assertEqual(zinfo.filename, "x/")
1621 self.assertEqual(zinfo.external_attr, (0o40775 << 16) | 0x10)
1623 zinfo = zipf.filelist[0]
1624 self.assertTrue(zinfo.filename.endswith("x/"))
1625 self.assertEqual(zinfo.external_attr, (0o40775 << 16) | 0x10)