[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form/tests - test_vocabularywidget.py:1.23
Fred L. Drake, Jr.
fred@zope.com
Wed, 18 Jun 2003 11:09:17 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/form/tests
In directory cvs.zope.org:/tmp/cvs-serv6095/tests
Modified Files:
test_vocabularywidget.py
Log Message:
Make the vocabulary widget factory responsible for calling the query view's
setWidget() method, since what is passed is not specific to the actual
widget.
=== Zope3/src/zope/app/browser/form/tests/test_vocabularywidget.py 1.22 => 1.23 ===
--- Zope3/src/zope/app/browser/form/tests/test_vocabularywidget.py:1.22 Mon Jun 16 17:52:42 2003
+++ Zope3/src/zope/app/browser/form/tests/test_vocabularywidget.py Wed Jun 18 11:09:16 2003
@@ -461,6 +461,7 @@
request = self.makeRequest()
w = getView(bound, "edit", request)
self.assert_(isinstance(w.query, MyVocabularyQuery))
+ self.assert_(w.queryview.widget is w)
self.assertEqual(w.queryview.name, w.name + "-query")
self.assertEqual(w.queryview.label, self.queryViewLabel)