[Zope3-checkins] CVS: Zope3/lib/python/Zope/Configuration/tests - testXML.py:1.7
Marius Gedminas
mgedmin@codeworks.lt
Thu, 12 Dec 2002 11:46:44 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Configuration/tests
In directory cvs.zope.org:/tmp/cvs-serv3327/lib/python/Zope/Configuration/tests
Modified Files:
testXML.py
Log Message:
Allow <include package="foo.bar.*" /> in zcml. This will include every
subpackage of foo.bar which contains a 'configure.zcml' file.
=== Zope3/lib/python/Zope/Configuration/tests/testXML.py 1.6 => 1.7 ===
--- Zope3/lib/python/Zope/Configuration/tests/testXML.py:1.6 Wed Nov 13 15:28:06 2002
+++ Zope3/lib/python/Zope/Configuration/tests/testXML.py Thu Dec 12 11:46:43 2002
@@ -62,6 +62,21 @@
x()
file.close()
+ def testIncludeAll(self):
+ file = TempFile()
+ name = file.name
+ file.write(
+ """<zopeConfigure xmlns='http://namespaces.zope.org/zope'>
+ <include
+ package="Zope.Configuration.tests.*"
+ file="contact.zcml" />
+ </zopeConfigure>""")
+ file.flush()
+ from Zope.Configuration.xmlconfig import XMLConfig
+ x = XMLConfig(name)
+ x()
+ file.close()
+
def testIncludeNoPackageAndIncluderNoPackage(self):
from os.path import split
file = TempFile()