Home | History | Annotate | Download | only in test

Lines Matching full:writestr

55             zipfp.writestr("strfile", self.data)
150 zipfp.writestr("name", "foo")
151 zipfp.writestr("name", "bar")
189 zipfp.writestr(TESTFN, data)
305 zipfp.writestr("strfile", '12')
326 zipfp.writestr("strfile", self.data)
386 zipfp.writestr("somefile.txt", "bogus")
394 zipfp.writestr(fpath, fdata)
416 zipfp.writestr(fpath, fdata)
440 zipfp.writestr(fname, content)
501 zipfp.writestr(zinfo, content)
537 zipfp.writestr("a.txt", "hello world", compress_type=zipfile.ZIP_STORED)
539 zipfp.writestr("b.txt", "hello world", compress_type=zipfile.ZIP_DEFLATED)
550 # Make sure that writestr creates files with mode 0600,
566 zipfp.writestr(fpath, fdata)
579 zipfp.writestr(fpath, fdata)
622 zipfp.writestr, "another.name", self.data)
634 zipfp.writestr("strfile", self.data)
809 zf.writestr(u"foo.txt", "Test for unicode filename")
810 zf.writestr(u"\xf6.txt", "Test for unicode filename")
826 zf.writestr(filename, content)
875 zipf.writestr("foo.txt", b"O, for a Muse of Fire!")
888 zipf.writestr("foo.txt", "O, for a Muse of Fire!")
933 zipf.writestr("foo.txt", "O, for a Muse of Fire!")
942 self.assertRaises(RuntimeError, zipf.writestr, "bogus.txt", "bogus")
953 zipf.writestr("foo.txt", "O, for a Muse of Fire!")
964 zipf.writestr("foo.txt", "O, for a Muse of Fire!")
998 zipf.writestr("foo.txt\x00qqq", "O, for a Muse of Fire!")
1014 zipf.writestr("foo.txt", "O, for a Muse of Fire!")
1023 zipf.writestr("foo.txt", "O, for a Muse of Fire!")
1031 zipf.writestr("foo.txt", "O, for a Muse of Fire!")
1039 zipf.writestr("foo.txt", "O, for a Muse of Fire!")
1052 zipf.writestr("foo.txt", "O, for a Muse of Fire!")
1110 zipf.writestr('foo', junk)
1325 zipfp.writestr('ones', '1'*FIXEDTEST_SIZE)
1326 zipfp.writestr('twos', '2'*FIXEDTEST_SIZE)