[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container/tests -
test_adding.py:1.16
The Unidentified User
cvs-admin at zope.org
Tue Dec 9 05:46:21 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/container/tests
In directory cvs.zope.org:/tmp/cvs-serv18730/src/zope/app/browser/container/tests
Modified Files:
test_adding.py
Log Message:
- modified renderAddButton method in adding.py
- modified add form add.pt to display add button with or without input box
- renderAddButton returns add button with or without input box
=== Zope3/src/zope/app/browser/container/tests/test_adding.py 1.15 => 1.16 ===
--- Zope3/src/zope/app/browser/container/tests/test_adding.py:1.15 Tue Dec 9 02:35:36 2003
+++ Zope3/src/zope/app/browser/container/tests/test_adding.py Tue Dec 9 05:45:49 2003
@@ -263,18 +263,24 @@
>>> class Fake:
... pass
-
>>> adding = Adding(FakeContainer(),TestRequest())
>>> adding.renderAddButton()
- "<input type='submit' value=' Add '>"
+ "<input type='submit' name='UPDATE_SUBMIT' value=' Add '>"
>>> adding = Adding(Fake(),TestRequest())
>>> adding.renderAddButton()
- "<input type='submit' value=' Add '><input type='text' name='add_input_name' value=''>"
+ "<input type='submit' name='UPDATE_SUBMIT' value=' Add '>""" \
+ """<input type='text' name='add_input_name' value=''>"
+ >>> adding.contentName='myname'
+ >>> adding.renderAddButton()
+ "<input type='submit' name='UPDATE_SUBMIT' value=' Add '>""" \
+ """<input type='text' name='add_input_name' value='myname'>"
+ >>>
"""
+
def test_suite():
return unittest.TestSuite((
unittest.makeSuite(Test),
@@ -283,3 +289,4 @@
if __name__=='__main__':
unittest.main(defaultTest='test_suite')
+
More information about the Zope3-Checkins
mailing list