[Zope3-checkins]
SVN: Zope3/trunk/src/zope/configuration/tests/test_xmlconfig.py
Make sure including zope.app.zcmlfiles in configuration works.
Baiju M
baiju.m.mail at gmail.com
Thu Feb 22 05:56:07 EST 2007
Log message for revision 72757:
Make sure including zope.app.zcmlfiles in configuration works.
Changed:
U Zope3/trunk/src/zope/configuration/tests/test_xmlconfig.py
-=-
Modified: Zope3/trunk/src/zope/configuration/tests/test_xmlconfig.py
===================================================================
--- Zope3/trunk/src/zope/configuration/tests/test_xmlconfig.py 2007-02-22 10:22:19 UTC (rev 72756)
+++ Zope3/trunk/src/zope/configuration/tests/test_xmlconfig.py 2007-02-22 10:56:05 UTC (rev 72757)
@@ -296,6 +296,25 @@
>>> warnings.showwarning = showwarning
"""
+def test_include_of_zope_app_zcmlfiles():
+ """
+ >>> context = config.ConfigurationMachine()
+ >>> xmlconfig.registerCommonDirectives(context)
+ >>> import zope.app.zcmlfiles
+
+ >>> xmlconfig.include(context, package=zope.app.zcmlfiles)
+
+ >>> xmlconfig.include(context, 'configure.zcml', zope.app.zcmlfiles)
+ >>> xmlconfig.include(context, 'ftesting.zcml', zope.app.zcmlfiles)
+ >>> xmlconfig.include(context, 'menus.zcml', zope.app.zcmlfiles)
+ >>> xmlconfig.include(context, 'meta.zcml', zope.app.zcmlfiles)
+ >>> try:
+ ... xmlconfig.include(context, 'file_not_exists.zcml', zope.app.zcmlfiles)
+ ... except IOError, msg:
+ ... 'OK'
+ 'OK'
+ """
+
def test_include_by_file_glob():
"""
>>> context = config.ConfigurationMachine()
More information about the Zope3-Checkins
mailing list