[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools/tests - test_package.py:1.4

Fred L. Drake, Jr. fred at zope.com
Tue May 4 18:02:40 EDT 2004


Update of /cvs-repository/Packages/zpkgtools/zpkgtools/tests
In directory cvs.zope.org:/tmp/cvs-serv26738/zpkgtools/tests

Modified Files:
	test_package.py 
Log Message:
zpkgtools.package.loadCollectionInfo() should take reldir as well


=== Packages/zpkgtools/zpkgtools/tests/test_package.py 1.3 => 1.4 ===
--- Packages/zpkgtools/zpkgtools/tests/test_package.py:1.3	Mon Apr  5 18:19:33 2004
+++ Packages/zpkgtools/zpkgtools/tests/test_package.py	Tue May  4 18:02:40 2004
@@ -113,14 +113,14 @@
 
     def test_collection_empty_pkginfo(self):
         self.write_config("# empty configuration file\n")
-        pkginfo = package.loadCollectionInfo(self.tmpdir)
+        pkginfo = package.loadCollectionInfo(self.tmpdir, None)
         eq = self.assertEqual
         eq(pkginfo.extensions, [])
         eq(pkginfo.documentation, [])
         eq(pkginfo.script, [])
 
     def test_collection_missing_pkginfo(self):
-        pkginfo = package.loadCollectionInfo(self.tmpdir)
+        pkginfo = package.loadCollectionInfo(self.tmpdir, None)
         eq = self.assertEqual
         eq(pkginfo.extensions, [])
         eq(pkginfo.documentation, [])
@@ -135,7 +135,7 @@
         os.mkdir(os.path.join(self.tmpdir, "bin"))
         self.write_file(os.path.join("bin", "runme.py"),
                         "#!/bin/sh\nexit\n")
-        pkginfo = package.loadCollectionInfo(self.tmpdir)
+        pkginfo = package.loadCollectionInfo(self.tmpdir, None)
         eq = self.assertEqual
         eq(len(pkginfo.extensions), 0)
         eq(pkginfo.documentation, ["doc/README.txt"])
@@ -145,7 +145,8 @@
         self.write_config("<extension foo>\n"
                           "  source  foo.c\n"
                           "</extension>\n")
-        self.assertRaises(ValueError, package.loadCollectionInfo, self.tmpdir)
+        self.assertRaises(ValueError, package.loadCollectionInfo,
+                          self.tmpdir, None)
 
 
 def test_suite():




More information about the Zope-CVS mailing list