Back to index

plone3  3.1.7
test_doctests.py
Go to the documentation of this file.
00001 from zope.testing import doctest
00002 from unittest import TestSuite
00003 
00004 from Testing.ZopeTestCase import FunctionalDocFileSuite
00005 from Products.PloneTestCase.PloneTestCase import PloneTestCase
00006 from Products.PloneTestCase.PloneTestCase import setupPloneSite
00007 
00008 from plone.app.controlpanel.tests.cptc import ControlPanelTestCase
00009 
00010 setupPloneSite()
00011 
00012 OPTIONFLAGS = (doctest.ELLIPSIS |
00013                doctest.NORMALIZE_WHITESPACE)
00014 
00015 def test_suite():
00016     tests = ['calendar.txt',
00017              'filter.txt',
00018              'mail.txt',
00019              'maintenance.txt',
00020              'search.txt',
00021              'site.txt',
00022              'skins.txt',
00023              'markup.txt',
00024              'types.txt',
00025              ]
00026     suite = TestSuite()
00027     for test in tests:
00028         suite.addTest(FunctionalDocFileSuite(test,
00029             optionflags=OPTIONFLAGS,
00030             package="plone.app.controlpanel.tests",
00031             test_class=ControlPanelTestCase))
00032     return suite