[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form/tests -
test_textwidget.py:1.7.24.3
Garrett Smith
garrett at mojave-corp.com
Sun Feb 8 18:54:53 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/browser/form/tests
In directory cvs.zope.org:/tmp/cvs-serv22019/src/zope/app/browser/form/tests
Modified Files:
Tag: ozzope-widgets-branch
test_textwidget.py
Log Message:
Multiple changes:
- Added getViewProviding and queryViewProviding methods to zapi. These are
used to lookup a view based on an interface it provides.
- Fixed a misspecified interface in rotterdamn textarea edit widget.
- Rework of utility.py in progress - tests broken.
- Removed the old view service.
=== Zope3/src/zope/app/browser/form/tests/test_textwidget.py 1.7.24.2 => 1.7.24.3 ===
--- Zope3/src/zope/app/browser/form/tests/test_textwidget.py:1.7.24.2 Sun Feb 8 02:02:28 2004
+++ Zope3/src/zope/app/browser/form/tests/test_textwidget.py Sun Feb 8 18:54:22 2004
@@ -16,9 +16,11 @@
"""
import unittest, doctest
+from zope.interface.verify import verifyClass, verifyObject
+from zope.schema import TextLine
+
from zope.app.browser.form.widget import TextWidget
from zope.app.browser.form.tests.test_browserwidget import BrowserWidgetTest
-from zope.interface.verify import verifyClass, verifyObject
class TextWidgetTest(BrowserWidgetTest):
"""
@@ -27,7 +29,7 @@
>>> verifyClass(ITextWidget, TextWidget)
True
>>> ITextWidget.extends(IEditWidget)
- True
+ True
"""
_WidgetFactory = TextWidget
@@ -52,9 +54,7 @@
check_list = ('style="color: red"',) + check_list
self._widget.extra = 'style="color: red"'
self.verifyResult(self._widget.hidden(), check_list)
-
-
-
+
def test_suite():
return unittest.makeSuite(TextWidgetTest)
More information about the Zope3-Checkins
mailing list