From cb6d7fef3eb8572f83adbca52187385e18bd2a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Wed, 26 Oct 2005 22:05:16 +0000 Subject: [PATCH] fix archive tests --- tests/archivetests.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/archivetests.py b/tests/archivetests.py index 3e147d48..362afc89 100644 --- a/tests/archivetests.py +++ b/tests/archivetests.py @@ -52,6 +52,8 @@ class ArchiveFileTestCase(unittest.TestCase): self.assertEqual(util.sha1_file(testfile), "5af9dd7d754f788cf511c57ce0af3d555fed009d") + pisi.api.finalize() + def testUnpackZip(self): bctx = BuildContext("tests/pccts/pspec.xml") @@ -71,6 +73,8 @@ class ArchiveFileTestCase(unittest.TestCase): self.assertEqual(util.sha1_file(testfile), "f2be0f9783e84e98fe4e2b8201a8f506fcc07a4d") + pisi.api.finalize() + # TODO: no link file in pccts package. Need to find a ZIP file # containing a symlink # check for symbolic links @@ -94,6 +98,7 @@ class ArchiveFileTestCase(unittest.TestCase): #TODO: do some more work to test the integrity of new zip file + pisi.api.finalize() def testUnpackZipCond(self): bctx = BuildContext("tests/pccts/pspec.xml") @@ -113,4 +118,6 @@ class ArchiveFileTestCase(unittest.TestCase): testfile = targetDir + "/pccts/history.txt" assert pathexists(testfile) + pisi.api.finalize() + suite = unittest.makeSuite(ArchiveFileTestCase)