[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form/tests - test_vocabularywidget.py:1.13
Fred L. Drake, Jr.
fred@zope.com
Mon, 2 Jun 2003 14:01:29 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/form/tests
In directory cvs.zope.org:/tmp/cvs-serv14070
Modified Files:
test_vocabularywidget.py
Log Message:
- don't use internal APIs when external will do
- call getView() consistently (using positional args)
=== Zope3/src/zope/app/browser/form/tests/test_vocabularywidget.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/browser/form/tests/test_vocabularywidget.py:1.12 Mon Jun 2 13:35:09 2003
+++ Zope3/src/zope/app/browser/form/tests/test_vocabularywidget.py Mon Jun 2 14:01:28 2003
@@ -343,7 +343,7 @@
request = self.makeRequest('field.f=foobar')
w = getView(bound, "edit", request)
self.assert_(w.haveData())
- self.assertEqual(w._showData(), "foobar")
+ self.assertEqual(w.getData(), "foobar")
self.assert_(isinstance(w, vocabularywidget.VocabularyEditWidget))
def test_edit_with_modified_empty_value(self):
@@ -352,7 +352,7 @@
# report haveData() properly.
bound = self.makeField(BasicVocabulary(["splat", "foobar"]))
bound.context.f = "splat"
- w = getView(bound, "edit", request = self.makeRequest())
+ w = getView(bound, "edit", self.makeRequest())
self.assert_(w.haveData())
class SingleSelectionTests(SingleSelectionTestsBase):