]> granicus.if.org Git - zziplib/commitdiff
double check test_65414
authorGuido Draheim <guidod@gmx.de>
Mon, 5 Feb 2018 10:12:02 +0000 (11:12 +0100)
committerGuido Draheim <guidod@gmx.de>
Mon, 5 Feb 2018 10:12:02 +0000 (11:12 +0100)
test/zziptests.py

index 9da66009f59a3ae0197df28406db6897b7a4d4f0..c367835da5dfd5e68baff15f9da5fb572dad6077 100644 (file)
@@ -2748,14 +2748,17 @@ class ZZipTest(unittest.TestCase):
     self.assertLess(len(errors(run.errors)), 200)
     self.assertIn(": Success", run.errors)
     #
-    run = shell("cd {tmpdir} && ../{exe} -p {filename} ".format(**locals()),
-        returncodes = [0,3])
     run = shell("cd {tmpdir} && ../{exe} {filename} ".format(**locals()),
         returncodes = [0,3])
     self.assertLess(len(run.output), 30)
     self.assertLess(len(errors(run.errors)), 10)
+    self.assertTrue(greps(run.errors, "Zipfile corrupted"))
     # self.assertEqual(os.path.getsize(tmpdir+"/test"), 3)
     self.assertFalse(os.path.exists(tmpdir+"/test"))
+    #
+    run = shell("cd {tmpdir} && ../{exe} -p {filename} ".format(**locals()),
+        returncodes = [0,3])
+    self.assertTrue(greps(run.errors, "Zipfile corrupted"))
     self.rm_testdir()
   def test_65419(self):
     """ check $(CVE).zip  """