[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form/tests - test_vocabularywidget.py:1.1.2.21
Fred L. Drake, Jr.
fred@zope.com
Mon, 19 May 2003 10:44:18 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/form/tests
In directory cvs.zope.org:/tmp/cvs-serv24106/tests
Modified Files:
Tag: schema-vocabulary-branch
test_vocabularywidget.py
Log Message:
renderResults() requires the current value to be passed in
=== Zope3/src/zope/app/browser/form/tests/test_vocabularywidget.py 1.1.2.20 => 1.1.2.21 ===
--- Zope3/src/zope/app/browser/form/tests/test_vocabularywidget.py:1.1.2.20 Fri May 16 16:35:57 2003
+++ Zope3/src/zope/app/browser/form/tests/test_vocabularywidget.py Mon May 19 10:44:17 2003
@@ -126,7 +126,7 @@
def renderQueryInput(self):
return "this-is-query-input"
- def renderQueryResults(self, results):
+ def renderQueryResults(self, results, value):
return "query-results-go-here"
@@ -472,7 +472,7 @@
checks = [
"query-results-go-here",
]
- self.verifyResultMissing(w.queryview.renderResults(), checks)
+ self.verifyResultMissing(w.queryview.renderResults([]), checks)
self.verifyResultMissing(w(), checks + ['class="queryresults"'])
def test_query_output_section_with_results(self):
@@ -481,7 +481,7 @@
checks = [
"query-results-go-here",
]
- self.verifyResult(w.queryview.renderResults(), checks)
+ self.verifyResult(w.queryview.renderResults([]), checks)
self.verifyResult(w(), checks + ['class="queryresults"'])