[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Formulator/Fields/tests - testGenericFields.py:1.3

Jeremy Hylton jeremy@zope.com
Wed, 17 Jul 2002 19:12:02 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/Formulator/Fields/tests
In directory cvs.zope.org:/tmp/cvs-serv5881/Zope/App/Formulator/Fields/tests

Modified Files:
	testGenericFields.py 
Log Message:
Add test of broken code in DateTimeField :-).


=== Zope3/lib/python/Zope/App/Formulator/Fields/tests/testGenericFields.py 1.2 => 1.3 ===
 """
 
 import unittest
+
 from Zope.App.Formulator.Fields.Generic.DateTimeField import DateTimeField
 from Zope.App.Formulator.Fields.Generic.EmailField import EmailField
 from Zope.App.Formulator.Fields.Generic.FileField import FileField
@@ -29,9 +30,14 @@
 from Zope.App.Formulator.Fields.Generic.PatternField import PatternField
 from Zope.App.Formulator.Fields.Generic.StringField import StringField
 
+from Zope.App.Formulator.Fields.Generic.DateTimeField \
+     import create_datetime_text_sub_form, create_datetime_list_sub_form
 
-class Test( unittest.TestCase ):
+class Test(unittest.TestCase):
 
+    def testBroken(self):
+        create_datetime_text_sub_form()
+        create_datetime_list_sub_form()
 
     def testDateTimeField(self):
         field = DateTimeField(id='some',
@@ -162,9 +168,7 @@
 
 
 def test_suite():
-    loader = unittest.TestLoader()
-    return loader.loadTestsFromTestCase( Test )
-
+    return unittest.makeSuite(Test)
 
 if __name__=='__main__':
     unittest.TextTestRunner().run( test_suite() )