def METHOD_NAME(self):
    # This test checks that more than 64k files can be added to an archive,
    # and that the resulting archive can be read properly by ZipFile
    zipf = zipfile.ZipFile(TESTFN, mode="w")
    zipf.debug = 100
    numfiles = (1 << 16) * 3/2
    for i in xrange(numfiles):
        zipf.writestr("foo%08d" % i, "%d" % (i**3 % 57))
    self.assertEqual(len(zipf.namelist()), numfiles)
    zipf.close()
    zipf2 = zipfile.ZipFile(TESTFN, mode="r")
    self.assertEqual(len(zipf2.namelist()), numfiles)
    for i in xrange(numfiles):
        self.assertEqual(zipf2.read("foo%08d" % i), "%d" % (i**3 % 57))
    zipf.close()