[Zope3-checkins] CVS: Zope3/src/zope/app/form/tests - test_utility.py:1.19

Martijn Pieters cvs-admin at zope.org
Tue Dec 2 16:30:23 EST 2003


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

Modified Files:
	test_utility.py 
Log Message:
Fix tests to reflect the fact that default values for fields are now used
properly.


=== Zope3/src/zope/app/form/tests/test_utility.py 1.18 => 1.19 ===
--- Zope3/src/zope/app/form/tests/test_utility.py:1.18	Thu Nov 27 08:59:19 2003
+++ Zope3/src/zope/app/form/tests/test_utility.py	Tue Dec  2 16:30:21 2003
@@ -195,7 +195,8 @@
         view = BrowserView(c, request)
         setUpWidgets(view, I)
         self.assertEqual(view.title_widget(), u'title: ')
-        self.assertEqual(view.description_widget(), u'description: ')
+        self.assertEqual(view.description_widget(),
+                         u'description: No description')
 
     def test_setupWidgets_via_names(self):
         c = C()
@@ -338,7 +339,8 @@
         view = BrowserView(c, request)
         setUpEditWidgets(view, I)
         self.assertEqual(view.title_widget(), u'title: ')
-        self.assertEqual(view.description_widget(), u'description: ')
+        self.assertEqual(view.description_widget(),
+                         u'description: No description')
         setUpEditWidgets(view, I, c2)
         self.assertEqual(view.title_widget(), u'title: ct')
         self.assertEqual(view.description_widget(), u'description: cd')




More information about the Zope3-Checkins mailing list