Back to index

plone3  3.1.7
test_fiveconfig.py
Go to the documentation of this file.
00001 
00002 import sys
00003 import unittest
00004 from zope.testing.doctestunit import DocTestSuite
00005 from __parent__ import __parent__
00006 configfeature = __parent__(__name__, 2)
00007 
00008 def test_fiveconfig():
00009     """
00010     The fiveconfig.zcml file declares various Five compatibility features.
00011     We only test that the configuration file can be run.
00012 
00013     >>> import zope.configuration.tests
00014     >>> import zope.configuration.xmlconfig
00015     >>> context = zope.configuration.xmlconfig.file('metacore.zcml', configfeature)
00016     >>> context = zope.configuration.xmlconfig.file('fiveconfig.zcml', configfeature, context)
00017     
00018     >>> context.hasFeature('compat_five') or context.hasFeature('compat_not_five')
00019     True
00020 
00021     """
00022 
00023 
00024 def test_suite():
00025     return unittest.TestSuite((
00026         DocTestSuite(),
00027         ))