From 74943901717648a837c8b0e76a5f8fe405fda208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Wed, 15 Jun 2005 14:16:15 +0000 Subject: [PATCH] targetDir unpac()'e parametre olarak veriliyor --- src/unittests/archivetests.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/unittests/archivetests.py b/src/unittests/archivetests.py index 69f76885..14121672 100644 --- a/src/unittests/archivetests.py +++ b/src/unittests/archivetests.py @@ -19,13 +19,12 @@ class ArchiveFileTestCase(unittest.TestCase): self.spec.source.version, self.spec.source.release) achv = archive.Archive(self.spec.source.archiveType, - self.spec.source.archiveName, - targetDir) + self.spec.source.archiveName) assert self.spec.source.archiveType == "targz" # unpacking is trivial with Archive() - achv.unpack() + achv.unpack(targetDir) # but testing is hard # "var/tmp/pisi/popt-1.7-3/work" (targetDir) @@ -48,8 +47,8 @@ class ArchiveFileTestCase(unittest.TestCase): # imaginary name, version and release for our test zip file targetDir = config.build_work_dir("sandbox", "0.1", "1") - achv = archive.Archive("zip", filename, targetDir) - achv.unpack() + achv = archive.Archive("zip", filename) + achv.unpack(targetDir) assert pathexists(targetDir + "/sandbox")