[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form/tests -
test_checkboxwidget.py:1.9.24.3
Garrett Smith
garrett at mojave-corp.com
Sun Feb 8 01:08:16 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/browser/form/tests
In directory cvs.zope.org:/tmp/cvs-serv15317/src/zope/app/browser/form/tests
Modified Files:
Tag: ozzope-widgets-branch
test_checkboxwidget.py
Log Message:
Added a test to confirm that a checkbox widget is an edit widget.
=== Zope3/src/zope/app/browser/form/tests/test_checkboxwidget.py 1.9.24.2 => 1.9.24.3 ===
--- Zope3/src/zope/app/browser/form/tests/test_checkboxwidget.py:1.9.24.2 Sun Feb 8 01:02:52 2004
+++ Zope3/src/zope/app/browser/form/tests/test_checkboxwidget.py Sun Feb 8 01:08:15 2004
@@ -16,6 +16,7 @@
"""
import unittest, doctest
+from zope.app.interfaces.form import IEditWidget
from zope.app.interfaces.browser.widget import ICheckBoxWidget
from zope.app.browser.form.widget import CheckBoxWidget
from zope.schema import Bool
@@ -26,9 +27,11 @@
class CheckBoxWidgetTest(BrowserWidgetTest):
"""
- CheckBoxWidget implements ICheckBoxWidget:
+ CheckBoxWidget implements ICheckBoxWidget, which is an edit widget type:
>>> verifyClass(ICheckBoxWidget, CheckBoxWidget)
+ True
+ >>> ICheckBoxWidget.extends(IEditWidget)
True
"""
More information about the Zope3-Checkins
mailing list