Changeset 5309
- Timestamp:
- 22 Jul 2010, 01:22:17 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/branches/ulif-fasttables/src/waeup/sirp/widgets/tests/test_objectwidget.py
r5308 r5309 12 12 from zope.component import provideAdapter 13 13 14 from zope.formlib.interfaces import IInputWidget, MissingInputError 14 from zope.formlib.interfaces import ( 15 IInputWidget, IDisplayWidget,MissingInputError) 15 16 from zope.formlib.widgets import TextWidget 16 17 from zope.formlib.tests.test_browserwidget import BrowserWidgetTest … … 18 19 19 20 from waeup.sirp.widgets.objectwidget import WAeUPObjectWidget as ObjectWidget 21 from waeup.sirp.widgets.objectwidget import ( 22 WAeUPObjectDisplayWidget as ObjectDisplayWidget) 20 23 21 24 class ITestContact(Interface): … … 102 105 in error_html) 103 106 else: 104 self.failUnless("email: MissingInputError(u'field.foo.email', u'', None)" 105 in error_html) 106 self.failUnless("name: MissingInputError(u'field.foo.name', u'', None)" 107 in error_html) 107 self.failUnless( 108 "email: MissingInputError(u'field.foo.email', u'', None)" 109 in error_html) 110 self.failUnless( 111 "name: MissingInputError(u'field.foo.name', u'', None)" 112 in error_html) 108 113 109 114 def test_applyChangesNoChange(self): … … 123 128 self.assertEqual(self.content.foo.email, u'foo@foo.test') 124 129 130 class ObjectDisplayWidgetTest(BrowserWidgetTest): 131 """Documents and tests the display variant of object widget. 132 133 >>> from zope.interface.verify import verifyClass 134 >>> verifyClass(IDisplayWidget, ObjectDisplayWidget) 135 True 136 """ 137 125 138 126 139 def test_suite(): 127 140 return unittest.TestSuite(( 128 141 unittest.makeSuite(ObjectWidgetTest), 142 unittest.makeSuite(ObjectDisplayWidgetTest), 129 143 #doctest.DocFileSuite('../objectwidget.txt', 130 144 # setUp=testing.setUp,
Note: See TracChangeset for help on using the changeset viewer.