[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form/tests - test_editview.py:1.3

Albertas Agejevas alga@codeworks.lt
Fri, 21 Feb 2003 09:54:05 -0500


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

Modified Files:
	test_editview.py 
Log Message:
Changed the browser:editform to clear the values which are missing or
empty in the form by default.

Added a keyword argument set_missing to getWidgetsData() and
getWidgetsDataForContent().

Renamed a keyword argument required there to strict, which is
clearer.  Added it everywhere to be more explicit.


=== Zope3/src/zope/app/browser/form/tests/test_editview.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/form/tests/test_editview.py:1.2	Wed Dec 25 09:12:32 2002
+++ Zope3/src/zope/app/browser/form/tests/test_editview.py	Fri Feb 21 09:53:34 2003
@@ -122,12 +122,14 @@
         request.form['field.foo'] = u'r foo'
         request.form['field.bar'] = u'r bar'
         request.form['field.baz'] = u'r baz'
+        request.form['field.a'] = u'c a'
+
         message = v.update()
         self.failUnless(message.startswith('Updated '), message)
         self.assertEqual(c.foo, u'r foo')
         self.assertEqual(c.bar, u'r bar')
         self.assertEqual(c.a  , u'c a')
-        self.assertEqual(c.b  , u'c b')
+        self.assertEqual(c.b  , None)
         self.assertEqual(c.baz, u'r baz')
 
 def test_suite():