[Zope3-checkins] CVS: Zope3/src/zope/app/form/tests -
test_widget.py:1.5 test_widget_geddon_deprecations.py:1.4
Philipp von Weitershausen
philikon at philikon.de
Fri Jan 16 08:09:38 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/form/tests
In directory cvs.zope.org:/tmp/cvs-serv23976/app/form/tests
Modified Files:
test_widget.py test_widget_geddon_deprecations.py
Log Message:
CustomWidget is CustomWidgetFactory now. See the following proposal email
for more information:
http://mail.zope.org/pipermail/zope3-dev/2004-January/009265.html
Backward compatability is kept for one month.
=== Zope3/src/zope/app/form/tests/test_widget.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/form/tests/test_widget.py:1.4 Fri Sep 26 15:53:35 2003
+++ Zope3/src/zope/app/form/tests/test_widget.py Fri Jan 16 08:09:07 2004
@@ -19,7 +19,7 @@
"""
from unittest import TestCase, TestSuite, main, makeSuite
-from zope.app.form.widget import Widget, CustomWidget
+from zope.app.form.widget import Widget, CustomWidgetFactory
from zope.app.interfaces.form import IWidget
from zope.interface.verify import verifyObject
from zope.schema import Text
@@ -61,14 +61,14 @@
# XXX Don't test getValue. It's silly and will go away.
-class TestCustomWidget(TestCase):
+class TestCustomWidgetFactory(TestCase):
# XXX this test should be rewritten once we've refactored widget properties
def test(self):
from zope.app.tests.placelesssetup import setUp, tearDown
setUp()
- cw = CustomWidget(Widget, width=60)
+ cw = CustomWidgetFactory(Widget, width=60)
verifyObject(IViewFactory, cw)
w = cw(Text(__name__='foo', title=u'Foo title'), TestRequest())
self.assertEqual(w.name, 'field.foo')
@@ -81,7 +81,7 @@
def test_suite():
return TestSuite((
makeSuite(TestWidget),
- makeSuite(TestCustomWidget),
+ makeSuite(TestCustomWidgetFactory),
))
if __name__=='__main__':
=== Zope3/src/zope/app/form/tests/test_widget_geddon_deprecations.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/form/tests/test_widget_geddon_deprecations.py:1.3 Fri Nov 21 12:12:04 2003
+++ Zope3/src/zope/app/form/tests/test_widget_geddon_deprecations.py Fri Jan 16 08:09:07 2004
@@ -20,7 +20,7 @@
from zope.testing.doctestunit import DocTestSuite
from zope.publisher.browser import TestRequest
from zope.app.form import utility
-from zope.app.form.widget import Widget, CustomWidget
+from zope.app.form.widget import Widget, CustomWidgetFactory
from zope.schema import Text
from zope.schema.interfaces import IText
from zope.app.tests.placelesssetup import setUp, tearDown
@@ -40,7 +40,7 @@
class TestView:
- bar = CustomWidget(TestWidget, uncle='bob')
+ bar = CustomWidgetFactory(TestWidget, uncle='bob')
def __init__(self, context, request):
self.context, self.request = context, request
More information about the Zope3-Checkins
mailing list