Changeset 7854 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 12 Mar 2012, 17:01:12 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/widgets/tests/test_phonewidget.py
r7852 r7854 22 22 z3.widget as doctests for the usphone widget. 23 23 """ 24 import unittest25 24 from zope import schema 26 # XXX: could we possibly get rid of zope.app.testing? 27 from zope.app.testing.setup import placefulSetUp, placefulTearDown 28 from zope.component import provideAdapter, getGlobalSiteManager 25 from zope.component import getGlobalSiteManager 29 26 from zope.formlib import form 30 from zope.formlib.exception import WidgetInputErrorView31 from zope.formlib.interfaces import (32 WidgetInputError, IInputWidget, IBrowserWidget, IWidgetInputError,33 IWidgetInputErrorView)34 from zope.formlib.textwidgets import TextWidget35 from zope.interface import verify, Interface, implements36 from zope.publisher.browser import TestRequest37 from zope.publisher.interfaces.browser import IDefaultBrowserLayer38 from zope.schema.interfaces import ITextLine39 from waeup.kofa.widgets.phonewidget import PhoneWidget40 41 import zope.formlib42 from zope import schema43 from zope.formlib.tests.test_functional_objectwidget import (44 Test, PlacelessSetup, VerifyResults, traversingSetUp, xmlconfig,45 PageTemplate, os, DefaultTraversable46 )47 27 from zope.formlib.tests.test_functional_textwidget import( 48 28 FunctionalWidgetTestCase, patternExists) 49 from zope.formlib. widgets import TextWidget50 from zope. component import adapts51 from zope. interface import implements52 from zope. traversing.interfaces import ITraversable29 from zope.formlib.textwidgets import TextWidget 30 from zope.interface import Interface, implements 31 from zope.publisher.browser import TestRequest 32 from zope.schema.interfaces import ITextLine 53 33 from waeup.kofa.widgets.phonewidget import PhoneWidget, PhonePrefixes 54 34 … … 81 61 self.bar = 'bar' 82 62 self.baz = None 83 84 85 63 86 64 class SampleForm(form.EditForm):
Note: See TracChangeset for help on using the changeset viewer.