Back to index

plone3  3.1.7
tests.py
Go to the documentation of this file.
00001 import zope.component.testing
00002 from zope.testing import doctest
00003 from zope.testing.doctestunit import DocTestSuite, DocFileSuite
00004 
00005 def tearDown(test):
00006     zope.component.testing.tearDown(test)
00007 
00008 def test_suite():
00009     from unittest import TestSuite, makeSuite
00010     suite = TestSuite()
00011     suite.addTests((
00012         DocFileSuite('storage.txt',
00013                      tearDown=tearDown,
00014                      optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS,
00015         ),
00016         DocFileSuite('manager.txt',
00017                      tearDown=tearDown,
00018                      optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS,
00019         ),
00020     ))
00021     return suite