[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form/tests -
test_vocabularywidget.py:1.25
Fred L. Drake, Jr.
fred at zope.com
Mon Sep 29 16:13:14 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/form/tests
In directory cvs.zope.org:/tmp/cvs-serv18259/tests
Modified Files:
test_vocabularywidget.py
Log Message:
- refactor "no value" messages to match behavior for other form fields
(if there's no value, generate blank space, not a message)
- update tests to match
=== Zope3/src/zope/app/browser/form/tests/test_vocabularywidget.py 1.24 => 1.25 ===
--- Zope3/src/zope/app/browser/form/tests/test_vocabularywidget.py:1.24 Wed Aug 13 17:28:04 2003
+++ Zope3/src/zope/app/browser/form/tests/test_vocabularywidget.py Mon Sep 29 16:13:13 2003
@@ -358,12 +358,7 @@
del bound.context.f
w = getView(bound, "display", self.makeRequest())
self.assert_(not w.hasInput())
- self.verifyResult(w(), [
- '<span',
- 'id="field.f"',
- 'name="field.f"',
- '</span>',
- ])
+ self.assertEqual(w(), "")
def test_display_with_value(self):
bound = self.makeField(value=["foobar", "frob"])
More information about the Zope3-Checkins
mailing list