[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools/tests - test_include.py:1.8

Fred L. Drake, Jr. fred at zope.com
Thu Apr 1 15:21:03 EST 2004


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

Modified Files:
	test_include.py 
Log Message:
More changes to the InclusionProcessor API: it knows less than even about
the context of what it does.  This allows the application class to be simpler
as well.


=== Packages/zpkgtools/zpkgtools/tests/test_include.py 1.7 => 1.8 ===
--- Packages/zpkgtools/zpkgtools/tests/test_include.py:1.7	Thu Apr  1 12:19:42 2004
+++ Packages/zpkgtools/zpkgtools/tests/test_include.py	Thu Apr  1 15:21:02 2004
@@ -32,8 +32,7 @@
     def setUp(self):
         self.source = os.path.dirname(__file__)
         self.destination = tempfile.mkdtemp(prefix="test_include_")
-        self.processor = include.InclusionProcessor(self.source,
-                                                    self.destination)
+        self.processor = include.InclusionProcessor(self.source)
         self.spec = include.Specification(self.source)
         self.source = os.path.abspath(self.source)
 
@@ -129,13 +128,13 @@
 
     def test_createDistributionTree_creates_destination(self):
         os.rmdir(self.destination)
-        self.processor.createDistributionTree()
+        self.processor.createDistributionTree(self.destination)
         self.assert_(os.path.isdir(self.destination))
         self.assert_(os.path.isfile(join(self.destination, "ignorethis.txt")))
 
     def test_createDistributionTree(self):
         self.spec.load(StringIO("__init__.py -"), "<string>")
-        self.processor.createDistributionTree(self.spec)
+        self.processor.createDistributionTree(self.destination, self.spec)
         self.check_file("ignorethis.txt")
         self.check_file("somescript.py")
         self.assert_(not os.path.exists(join(self.destination, "__init__.py")))




More information about the Zope-CVS mailing list