Changeset 7501 for main/waeup.sirp/trunk/src/waeup/sirp
- Timestamp:
- 23 Jan 2012, 12:35:12 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/widgets/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/widgets/tests/test_datewidget.py
r7196 r7501 58 58 def test_hasInput(self): 59 59 del self._widget.request.form['field.foo'] 60 self. failIf(self._widget.hasInput())60 self.assertFalse(self._widget.hasInput()) 61 61 self._widget.request.form['field.foo'] = u'' 62 self. failUnless(self._widget.hasInput())62 self.assertTrue(self._widget.hasInput()) 63 63 self._widget.request.form['field.foo'] = u'2003-03-26' 64 self. failUnless(self._widget.hasInput())64 self.assertTrue(self._widget.hasInput()) 65 65 66 66 def test_getDefaultInputValue(self, … … 101 101 102 102 def testDefaultDisplayStyle(self): 103 self. failIf(self._widget.displayStyle)103 self.assertFalse(self._widget.displayStyle) 104 104 105 105 def testRenderDefault(self): -
main/waeup.sirp/trunk/src/waeup/sirp/widgets/tests/test_objectwidget.py
r7321 r7501 120 120 error_html = widget.error() 121 121 if sys.version_info < (2, 5): 122 self. failUnless("email: <zope.formlib.interfaces.Mis"122 self.assertTrue("email: <zope.formlib.interfaces.Mis" 123 123 in error_html) 124 self. failUnless("name: <zope.formlib.interfaces.Miss"124 self.assertTrue("name: <zope.formlib.interfaces.Miss" 125 125 in error_html) 126 126 else: 127 self. failUnless(127 self.assertTrue( 128 128 "email: MissingInputError(u'field.foo.email', u'', None)" 129 129 in error_html) 130 self. failUnless(130 self.assertTrue( 131 131 "name: MissingInputError(u'field.foo.name', u'', None)" 132 132 in error_html)
Note: See TracChangeset for help on using the changeset viewer.