fix archive tests
This commit is contained in:
@@ -52,6 +52,8 @@ class ArchiveFileTestCase(unittest.TestCase):
|
|||||||
self.assertEqual(util.sha1_file(testfile),
|
self.assertEqual(util.sha1_file(testfile),
|
||||||
"5af9dd7d754f788cf511c57ce0af3d555fed009d")
|
"5af9dd7d754f788cf511c57ce0af3d555fed009d")
|
||||||
|
|
||||||
|
pisi.api.finalize()
|
||||||
|
|
||||||
def testUnpackZip(self):
|
def testUnpackZip(self):
|
||||||
bctx = BuildContext("tests/pccts/pspec.xml")
|
bctx = BuildContext("tests/pccts/pspec.xml")
|
||||||
|
|
||||||
@@ -71,6 +73,8 @@ class ArchiveFileTestCase(unittest.TestCase):
|
|||||||
self.assertEqual(util.sha1_file(testfile),
|
self.assertEqual(util.sha1_file(testfile),
|
||||||
"f2be0f9783e84e98fe4e2b8201a8f506fcc07a4d")
|
"f2be0f9783e84e98fe4e2b8201a8f506fcc07a4d")
|
||||||
|
|
||||||
|
pisi.api.finalize()
|
||||||
|
|
||||||
# TODO: no link file in pccts package. Need to find a ZIP file
|
# TODO: no link file in pccts package. Need to find a ZIP file
|
||||||
# containing a symlink
|
# containing a symlink
|
||||||
# check for symbolic links
|
# 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
|
#TODO: do some more work to test the integrity of new zip file
|
||||||
|
|
||||||
|
pisi.api.finalize()
|
||||||
|
|
||||||
def testUnpackZipCond(self):
|
def testUnpackZipCond(self):
|
||||||
bctx = BuildContext("tests/pccts/pspec.xml")
|
bctx = BuildContext("tests/pccts/pspec.xml")
|
||||||
@@ -113,4 +118,6 @@ class ArchiveFileTestCase(unittest.TestCase):
|
|||||||
testfile = targetDir + "/pccts/history.txt"
|
testfile = targetDir + "/pccts/history.txt"
|
||||||
assert pathexists(testfile)
|
assert pathexists(testfile)
|
||||||
|
|
||||||
|
pisi.api.finalize()
|
||||||
|
|
||||||
suite = unittest.makeSuite(ArchiveFileTestCase)
|
suite = unittest.makeSuite(ArchiveFileTestCase)
|
||||||
|
|||||||
Reference in New Issue
Block a user