Beispiel #1
0
 def one():
     rzip = RZipFile(zipname, "r", compression)
     info = rzip.getinfo('one')
     return (info.date_time[0] == year and
             rzip.read('one') == 'stuff' and
             rzip.read('three') == 'hello, world')
 def one():
     rzip = RZipFile(zipname, "r", compression)
     info = rzip.getinfo("one")
     return info.date_time[0] == year and rzip.read("one") == "stuff\n" and rzip.read("three") == "hello, world"