[Zope3-checkins]
SVN: Zope3/branches/philikon-widget-subdirective/src/zope/app/form/browser/tests/test_sequencewidget.py
adjust test to new __call__ signature of widget factories
Philipp von Weitershausen
philikon at philikon.de
Sun Jun 12 10:31:46 EDT 2005
Log message for revision 30771:
adjust test to new __call__ signature of widget factories
Changed:
U Zope3/branches/philikon-widget-subdirective/src/zope/app/form/browser/tests/test_sequencewidget.py
-=-
Modified: Zope3/branches/philikon-widget-subdirective/src/zope/app/form/browser/tests/test_sequencewidget.py
===================================================================
--- Zope3/branches/philikon-widget-subdirective/src/zope/app/form/browser/tests/test_sequencewidget.py 2005-06-12 14:31:15 UTC (rev 30770)
+++ Zope3/branches/philikon-widget-subdirective/src/zope/app/form/browser/tests/test_sequencewidget.py 2005-06-12 14:31:46 UTC (rev 30771)
@@ -92,14 +92,13 @@
"""Verify that the widget can be constructed via the CustomWidgetFactory
(Issue #293)
"""
-
value_type = TextLine(__name__=u'bar')
self.field = List( __name__=u'foo', value_type=value_type )
request = TestRequest()
# set up the custom widget factory and verify that it works
sw = CustomSequenceWidgetFactory(ListSequenceWidget)
- widget = sw(self.field, TextLine(), request)
+ widget = sw(self.field, request)
assert widget.subwidget is None
assert widget.context.value_type is value_type
@@ -107,7 +106,7 @@
class PollOption(object) : pass
ow = CustomWidgetFactory(ObjectWidget, PollOption)
sw = CustomSequenceWidgetFactory(ListSequenceWidget, subwidget=ow)
- widget = sw(self.field, TextLine(), request)
+ widget = sw(self.field, request)
assert widget.subwidget is ow
assert widget.context.value_type is value_type
More information about the Zope3-Checkins
mailing list