[Zope3-checkins] CVS: Zope3/src/zope/app/form/browser/ftests -
test_checkboxwidget.py:1.3 test_registrations.py:1.3
Stephan Richter
srichter at cosmos.phy.tufts.edu
Wed Mar 17 12:59:36 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/form/browser/ftests
In directory cvs.zope.org:/tmp/cvs-serv19413/src/zope/app/form/browser/ftests
Modified Files:
test_checkboxwidget.py test_registrations.py
Log Message:
Fix tests after slight API changes.
=== Zope3/src/zope/app/form/browser/ftests/test_checkboxwidget.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/form/browser/ftests/test_checkboxwidget.py:1.2 Wed Mar 17 12:37:05 2004
+++ Zope3/src/zope/app/form/browser/ftests/test_checkboxwidget.py Wed Mar 17 12:59:35 2004
@@ -11,11 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-"""
+"""Checkbox Widget tests
$Id$
"""
-
import unittest
from persistence import Persistent
from transaction import get_transaction
@@ -24,7 +23,7 @@
from zope.interface import implements
from zope.schema import Bool
-from zope.app.form.browser.itemwidgets import CheckBoxWidget
+from zope.app.form.browser import CheckBoxWidget
from support import *
from zope.app.traversing import traverse
=== Zope3/src/zope/app/form/browser/ftests/test_registrations.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/form/browser/ftests/test_registrations.py:1.2 Wed Mar 17 12:37:05 2004
+++ Zope3/src/zope/app/form/browser/ftests/test_registrations.py Wed Mar 17 12:59:35 2004
@@ -1,18 +1,35 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Test widget registrations.
+
+$Id$
+"""
import unittest, doctest
from zope.interface import implements
from zope.app import zapi
from zope.publisher.browser import TestRequest
+# import all widgets (in this case, importing * is ok, since we
+# absolutely know what we're importing)
+from zope.app.form.browser import *
+
import zope.schema as fields
from zope.schema import interfaces
from zope.schema import vocabulary
import zope.app.form.browser.vocabularywidget as vocabwidgets
-
-# import all widgets (in this case, importing * is ok, since we
-# absolutely know what we're importing)
-from zope.app.form.browser import *
from zope.app.form.interfaces import IDisplayWidget
from zope.app.form.interfaces import IInputWidget
More information about the Zope3-Checkins
mailing list