[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Forms/Browser/tests - testEditView.py:1.2
Jim Fulton
jim@zope.com
Sat, 30 Nov 2002 13:33:52 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Forms/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv11417/lib/python/Zope/App/Forms/Browser/tests
Modified Files:
testEditView.py
Log Message:
Use a standard submit button name for submitting updates.
=== Zope3/lib/python/Zope/App/Forms/Browser/tests/testEditView.py 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/App/Forms/Browser/tests/testEditView.py:1.1 Mon Nov 11 15:29:58 2002
+++ Zope3/lib/python/Zope/App/Forms/Browser/tests/testEditView.py Sat Nov 30 13:33:52 2002
@@ -24,6 +24,7 @@
from Zope.ComponentArchitecture.GlobalViewService \
import provideView, setDefaultViewName
from Zope.App.Forms.Views.Browser.Widget import TextWidget
+from Zope.App.Forms.Browser.StandardSubmit import Update
class I(Interface):
foo = TextLine(title=u"Foo")
@@ -113,7 +114,7 @@
c = C()
request = TestRequest()
v = EV(c, request)
- request.form['save_submit'] = u'Submit'
+ request.form[Update] = ''
request.form['field.foo'] = u'r foo'
request.form['field.bar'] = u'r bar'
request.form['field.baz'] = u'r baz'