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

Fred L. Drake, Jr. fred at zope.com
Wed Apr 28 16:01:11 EDT 2004


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

Modified Files:
	test_include.py 
Log Message:
make wildcards work as documented


=== Packages/zpkgtools/zpkgtools/tests/test_include.py 1.13 => 1.14 ===
--- Packages/zpkgtools/zpkgtools/tests/test_include.py:1.13	Wed Apr 28 15:45:30 2004
+++ Packages/zpkgtools/zpkgtools/tests/test_include.py	Wed Apr 28 16:01:11 2004
@@ -68,7 +68,7 @@
             ignorethis.txt   newname1.txt
             ignorethis.txt   newname2.txt
 
-            source.txt
+            runtests.py
 
             # Another comment.
           </collection>
@@ -87,7 +87,7 @@
         self.assertEqual(len(includes), 3)
         self.assert_("newname1.txt" in includes)
         self.assert_("newname2.txt" in includes)
-        self.assert_(None in includes)
+        self.assert_("runtests.py" in includes)
         self.assertEqual(specs.collection.includes["newname1.txt"],
                          "ignorethis.txt")
         self.assertEqual(specs.loads.includes["repository:doc/whatzit.txt"],
@@ -110,6 +110,8 @@
             """)
         specs = include.load(self.source)
         specs.collection.cook()
+        self.assertEqual(len(specs.collection.includes), 1)
+        self.assert_("ignorethis.txt" in specs.collection.includes)
 
     def test_disallow_external_reference_in_collection_spec(self):
         self.check_disallow_external_reference_in_spec("collection")




More information about the Zope-CVS mailing list