Back to index

plone3  3.1.7
testDocTests.py
Go to the documentation of this file.
00001 import unittest
00002 from zope.testing import doctest
00003 from Testing.ZopeTestCase import FunctionalDocFileSuite
00004 
00005 from plone.session.tests.sessioncase import FunctionalPloneSessionTestCase
00006 
00007 optionflags = doctest.REPORT_ONLY_FIRST_FAILURE | doctest.ELLIPSIS
00008 
00009 
00010 def test_suite():
00011     tests = [ "adapters.txt",
00012               "hash.txt",
00013             ]
00014 
00015     suite = unittest.TestSuite()
00016     for test in tests:
00017         suite.addTest(FunctionalDocFileSuite(test,
00018                 optionflags=optionflags,
00019                 package="plone.session.tests",
00020                 test_class=FunctionalPloneSessionTestCase))
00021 
00022     return suite