[Checkins] SVN: Zope3/trunk/src/zope/configuration/tests/test_xmlconfig.py Testing the configuration of zope.app.zcmlfiles should be elsewhere.

Baiju M baiju.m.mail at gmail.com
Thu Feb 22 08:06:20 EST 2007


Log message for revision 72760:
  Testing the configuration of zope.app.zcmlfiles should be elsewhere.
  ref: http://mail.zope.org/pipermail/zope3-dev/2007-February/021813.html
  

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 12:52:05 UTC (rev 72759)
+++ Zope3/trunk/src/zope/configuration/tests/test_xmlconfig.py	2007-02-22 13:06:19 UTC (rev 72760)
@@ -287,34 +287,14 @@
     >>> xmlconfig.include(context, 'ftesting.zcml', zope.app)
     >>> xmlconfig.include(context, 'menus.zcml', zope.app)
     >>> xmlconfig.include(context, 'meta.zcml', zope.app)
-    >>> try:
-    ...     xmlconfig.include(context, 'file_not_exists.zcml', zope.app)
-    ... except IOError, msg:
-    ...     'OK'
-    'OK'
+    >>> xmlconfig.include(context, 'file_not_exists.zcml', zope.app) #doctest: +ELLIPSIS
+    Traceback (most recent call last):
+    ...
+    IOError: ...
 
     >>> 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 Checkins mailing list