Fix 'buildout.cfg' modification code
[zope-bootstrap.git] / skel-zope3 / src / appmain / testing.py
1 import os.path
2 from zope.testing import doctest
3 from zope.app.testing import functional
4
5 ftesting_zcml = os.path.join(os.path.dirname(__file__), 'ftesting.zcml')
6 FunctionalLayer = functional.ZCMLLayer(ftesting_zcml, __name__,
7                                        'FunctionalLayer')
8
9 def FunctionalDocTestSuite(module=None, **kw):
10     module = doctest._normalize_module(module)
11     suite = functional.FunctionalDocTestSuite(module, **kw)
12     suite.layer = FunctionalLayer
13     return suite
14
15 def FunctionalDocFileSuite(path, **kw):
16     suite = functional.FunctionalDocFileSuite(path, **kw)
17     suite.layer = FunctionalLayer
18     return suite
19
20 class FunctionalTestCase(functional.FunctionalTestCase):
21     layer = FunctionalLayer