Back to index

plone3  3.1.7
test_widgets.py
Go to the documentation of this file.
00001 import unittest
00002 import Products.Five
00003 import plone.app.form
00004 from zope.testing import doctest, cleanup
00005 from Products.Five import zcml
00006 
00007 optionflags =  (doctest.ELLIPSIS |
00008                 doctest.NORMALIZE_WHITESPACE |
00009                 doctest.REPORT_ONLY_FIRST_FAILURE)
00010 
00011 
00012 def setUp(test):
00013     zcml.load_config('configure.zcml', Products.Five)
00014     zcml.load_config('configure.zcml', plone.app.form)
00015 
00016 def tearDown(test):
00017     cleanup.cleanUp()
00018 
00019 def test_suite():
00020     return unittest.TestSuite([
00021         doctest.DocFileSuite('widgets/uberselectionwidget.txt',
00022                              package='plone.app.form',
00023                              setUp=setUp,
00024                              tearDown=tearDown,
00025                              optionflags=optionflags),
00026         ])