Update of /cvs-repository/Zope3/lib/python/Zope/Configuration/tests
In directory cvs.zope.org:/tmp/cvs-serv21601/lib/python/Zope/Configuration/tests
Modified Files:
Tag: contextual-directives
testXML.py
Log Message:
Added test for new feature that makes a leading dot imply the include
file package.
=== Zope3/lib/python/Zope/Configuration/tests/testXML.py 1.1.2.8 => 1.1.2.8.4.1 ===
else:
self.fail('Should have raised ZopeXMLConfigurationError')
+
+
+ def testInclude(self):
+ from tempfile import mktemp
+ name = mktemp()
+ open(name, 'w').write(
+ """<zopeConfigure xmlns='http://namespaces.zope.org/zope'>
+ <include package="Zope.Configuration.tests.Contact"
+ file="contact.zcml" />
+ </zopeConfigure>""")
+
+ from Zope.Configuration.xmlconfig import XMLConfig
+ x=XMLConfig(name)
+ x()
def test_suite():