Ignore:
Timestamp:
13 Apr 2012, 16:51:25 (13 years ago)
Author:
uli
Message:

Improve datewidget to set date format from bound schema field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/widgets/tests/test_datewidget.py

    r7811 r8147  
    5555            ('type="text"', 'id="field.foo"', 'name="field.foo"',
    5656                'value="26/03/04"'))
     57
     58    def testProperties(self):
     59        self.assertEqual(self._widget.tag, 'input')
     60        self.assertEqual(self._widget.type, 'text')
     61        # By default the date format is ISO and the rendered CSS 'datepicker'
     62        self.assertEqual(self._widget.cssClass, 'datepicker')
     63        self.assertEqual(self._widget.extra, '')
    5764
    5865    def test_hasInput(self):
Note: See TracChangeset for help on using the changeset viewer.