[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/testing/tests.py
move out zcml test to zope.app.zcmlfiles
Bernd Dorn
bernd.dorn at lovelysystems.com
Sun Mar 25 07:08:28 EDT 2007
Log message for revision 73586:
move out zcml test to zope.app.zcmlfiles
Changed:
U Zope3/trunk/src/zope/app/testing/tests.py
-=-
Modified: Zope3/trunk/src/zope/app/testing/tests.py
===================================================================
--- Zope3/trunk/src/zope/app/testing/tests.py 2007-03-25 10:57:08 UTC (rev 73585)
+++ Zope3/trunk/src/zope/app/testing/tests.py 2007-03-25 11:08:28 UTC (rev 73586)
@@ -232,33 +232,8 @@
# standard library has tests for (we hope).
-def test_include_of_zope_app():
- """
- >>> from zope.configuration import xmlconfig, config
- >>> context = config.ConfigurationMachine()
- >>> xmlconfig.registerCommonDirectives(context)
- >>> import zope.app.zcmlfiles
- >>> import warnings
- >>> showwarning = warnings.showwarning
- >>> warnings.showwarning = lambda *a, **k: None
- >>> 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)
- >>> xmlconfig.include(context,
- ... 'file_not_exists.zcml', zope.app.zcmlfiles) #doctest: +ELLIPSIS
- Traceback (most recent call last):
- ...
- IOError: ...
-
- >>> warnings.showwarning = showwarning
- """
-
-
def test_suite():
return unittest.TestSuite((
unittest.makeSuite(FunctionalHTTPDocTest),
More information about the Zope3-Checkins
mailing list