[Zope3-checkins] CVS: Zope3/src/zope/app/form/tests - test_widget.py:1.7

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Mar 8 18:34:00 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/form/tests
In directory cvs.zope.org:/tmp/cvs-serv4394/src/zope/app/form/tests

Modified Files:
	test_widget.py 
Log Message:


Use new translation API.




=== Zope3/src/zope/app/form/tests/test_widget.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/form/tests/test_widget.py:1.6	Fri Mar  5 23:17:24 2004
+++ Zope3/src/zope/app/form/tests/test_widget.py	Mon Mar  8 18:33:59 2004
@@ -11,14 +11,11 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""XXX short summary goes here.
-
-XXX longer description goes here.
+"""Generic Widget Tests
 
 $Id$
 """
-
-import doctest
+from zope.testing.doctestunit import DocTestSuite
 from unittest import TestSuite, main, makeSuite
 from zope.app.form.widget import Widget, CustomWidgetFactory
 from zope.app.interfaces.form import IWidget
@@ -26,6 +23,7 @@
 from zope.schema import Text
 from zope.publisher.browser import TestRequest
 from zope.component.interfaces import IViewFactory
+from zope.app.tests.placelesssetup import setUp, tearDown
 
 class TestContext:
     __name__ = 'Test'
@@ -92,9 +90,7 @@
 
 def test_suite():
     return TestSuite((
-        makeSuite(TestWidget),
-        makeSuite(TestCustomWidgetFactory),
-        doctest.DocTestSuite(),
+        DocTestSuite(setUp=setUp, tearDown=tearDown),
         ))
 
 if __name__=='__main__':




More information about the Zope3-Checkins mailing list