[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form/tests - test_vocabularywidget.py:1.9
Fred L. Drake, Jr.
fred@zope.com
Thu, 29 May 2003 18:23:19 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/form/tests
In directory cvs.zope.org:/tmp/cvs-serv1208
Modified Files:
test_vocabularywidget.py
Log Message:
Re-enable the commented-out check from the previous commit, and fix
the check that was actually wrong.
=== Zope3/src/zope/app/browser/form/tests/test_vocabularywidget.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/browser/form/tests/test_vocabularywidget.py:1.8 Thu May 29 18:20:57 2003
+++ Zope3/src/zope/app/browser/form/tests/test_vocabularywidget.py Thu May 29 18:23:18 2003
@@ -313,9 +313,7 @@
def test_edit(self, extraChecks=[]):
bound = self.makeField(BasicVocabulary(["splat", "foobar"]))
w = getView(bound, "edit", self.makeRequest())
- # XXX Strange case; maybe not shared between single- and
- # multi- select lists:
- # self.assert_(not w.haveData())
+ self.assert_(not w.haveData())
self.verifyResult(w(), [
'selected="selected"',
'id="field.f"',
@@ -427,7 +425,7 @@
def test_edit(self):
bound = self.makeField(BasicVocabulary(["splat", "foobar", "frob"]))
w = getView(bound, "edit", self.makeRequest())
- self.assert_(not w.haveData())
+ self.assert_(w.haveData())
self.verifyResult(w(), [
'id="field.f"',
'name="field.f:list"',