Back to index

plone3  3.1.7
Functions | Variables
kss.demo.configfeature.tests.test_fiveconfig Namespace Reference

Functions

def test_fiveconfig
def test_suite

Variables

tuple configfeature = __parent__(__name__, 2)

Function Documentation

The fiveconfig.zcml file declares various Five compatibility features.
We only test that the configuration file can be run.

>>> import zope.configuration.tests
>>> import zope.configuration.xmlconfig
>>> context = zope.configuration.xmlconfig.file('metacore.zcml', configfeature)
>>> context = zope.configuration.xmlconfig.file('fiveconfig.zcml', configfeature, context)

>>> context.hasFeature('compat_five') or context.hasFeature('compat_not_five')
True

Definition at line 8 of file test_fiveconfig.py.

00008 
00009 def test_fiveconfig():
00010     """
00011     The fiveconfig.zcml file declares various Five compatibility features.
00012     We only test that the configuration file can be run.
00013 
00014     >>> import zope.configuration.tests
00015     >>> import zope.configuration.xmlconfig
00016     >>> context = zope.configuration.xmlconfig.file('metacore.zcml', configfeature)
00017     >>> context = zope.configuration.xmlconfig.file('fiveconfig.zcml', configfeature, context)
00018     
00019     >>> context.hasFeature('compat_five') or context.hasFeature('compat_not_five')
00020     True
00021 
00022     """
00023 

Definition at line 24 of file test_fiveconfig.py.

00024 
00025 def test_suite():
00026     return unittest.TestSuite((
00027         DocTestSuite(),
00028         ))

Variable Documentation

Definition at line 6 of file test_fiveconfig.py.