Changeset 7781 for main/waeup.sirp/branches/ulif-schoolgrades/src/waeup
- Timestamp:
- 7 Mar 2012, 18:05:23 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/branches/ulif-schoolgrades/src/waeup/sirp/widgets/tests/test_objectwidget.py
r7501 r7781 45 45 name = TextLine() 46 46 email = TextLine() 47 47 48 48 class TestContact(object): 49 49 implements(ITestContact) … … 51 51 class ITestContent(Interface): 52 52 foo = Object( 53 ITestContact, 53 ITestContact, 54 54 title = u'Foo Title', 55 55 description = u'', 56 56 ) 57 57 58 58 class ObjectWidgetInputErrorView(object): 59 59 implements(IWidgetInputErrorView) … … 82 82 provideAdapter(TextWidget, (ITextLine, IDefaultBrowserLayer), 83 83 IInputWidget) 84 84 85 85 class TestObject(object): 86 86 implements(ITestContent) … … 120 120 error_html = widget.error() 121 121 if sys.version_info < (2, 5): 122 self.assertTrue("email: <zope.formlib.interfaces.Mis" 122 self.assertTrue("email: <zope.formlib.interfaces.Mis" 123 123 in error_html) 124 124 self.assertTrue("name: <zope.formlib.interfaces.Miss" … … 161 161 widget1, widget2 = widget.subwidgets() 162 162 self.assertTrue(widget1 is name_widget) 163 164 163 164 165 165 class ObjectDisplayWidgetTest(BrowserWidgetTest): 166 166 """Documents and tests the display variant of object widget. … … 184 184 # adapter that can turn nearly any object into an ITraversable. 185 185 provideAdapter(DefaultTraversable, (None,), ITraversable) 186 186 187 187 class TestObject(object): 188 188 implements(ITestContent) … … 206 206 IDisplayWidget) 207 207 208 208 209 209 def test_interfaces(self): 210 210 from zope.interface.verify import DoesNotImplement … … 224 224 'foo@foo.test', 225 225 '</td>'] 226 self.verifyResult(widget(), check_list, inorder=True) 226 self.verifyResult(widget(), check_list, inorder=True) 227 227 228 228 def test_suite():
Note: See TracChangeset for help on using the changeset viewer.