Back to index

plone3  3.1.7
test_doctests.py
Go to the documentation of this file.
00001 # -*- coding: UTF-8 -*-
00002 
00003 from Products.PloneTestCase import PloneTestCase
00004 PloneTestCase.setupPloneSite()
00005 
00006 import unittest
00007 
00008 from zope.testing import doctest
00009 from zope.testing.doctestunit import DocTestSuite
00010 
00011 from Testing.ZopeTestCase import FunctionalDocFileSuite as Suite
00012 
00013 OPTIONFLAGS = (doctest.REPORT_ONLY_FIRST_FAILURE |
00014                doctest.ELLIPSIS |
00015                doctest.NORMALIZE_WHITESPACE)
00016 
00017 def test_suite():
00018     return unittest.TestSuite((
00019         DocTestSuite('plone.app.i18n.locales.countries'),
00020         DocTestSuite('plone.app.i18n.locales.languages'),
00021         Suite('countries.txt',
00022             optionflags=OPTIONFLAGS,
00023             package='plone.app.i18n.locales.tests',
00024             test_class=PloneTestCase.FunctionalTestCase
00025             ),
00026         Suite('languages.txt',
00027             optionflags=OPTIONFLAGS,
00028             package='plone.app.i18n.locales.tests',
00029             test_class=PloneTestCase.FunctionalTestCase
00030             )
00031         ))