[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form/tests - test_checkboxwidget.py:1.9.24.2

Garrett Smith garrett at mojave-corp.com
Sun Feb 8 01:02:53 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/browser/form/tests
In directory cvs.zope.org:/tmp/cvs-serv14030/src/zope/app/browser/form/tests

Modified Files:
      Tag: ozzope-widgets-branch
	test_checkboxwidget.py 
Log Message:

Added test for checkbox widget interface implementation.


=== Zope3/src/zope/app/browser/form/tests/test_checkboxwidget.py 1.9.24.1 => 1.9.24.2 ===
--- Zope3/src/zope/app/browser/form/tests/test_checkboxwidget.py:1.9.24.1	Sat Feb  7 23:36:10 2004
+++ Zope3/src/zope/app/browser/form/tests/test_checkboxwidget.py	Sun Feb  8 01:02:52 2004
@@ -14,15 +14,23 @@
 """
 $Id$
 """
-import unittest
+import unittest, doctest
 
+from zope.app.interfaces.browser.widget import ICheckBoxWidget
 from zope.app.browser.form.widget import CheckBoxWidget
 from zope.schema import Bool
+from zope.interface.verify import verifyClass, verifyObject
 
 from zope.app.browser.form.tests.test_browserwidget import BrowserWidgetTest
 
 
 class CheckBoxWidgetTest(BrowserWidgetTest):
+    """
+    CheckBoxWidget implements ICheckBoxWidget:
+        
+        >>> verifyClass(ICheckBoxWidget, CheckBoxWidget)
+        True
+    """
 
     _FieldFactory = Bool
     _WidgetFactory = CheckBoxWidget
@@ -60,7 +68,11 @@
 
 
 def test_suite():
-    return unittest.makeSuite(CheckBoxWidgetTest)
+    
+    return unittest.TestSuite((
+        unittest.makeSuite(CheckBoxWidgetTest),
+        doctest.DocTestSuite(),
+        ))
 
 if __name__=='__main__':
     unittest.main(defaultTest='test_suite')




More information about the Zope3-Checkins mailing list