Ignore:
Timestamp:
Jan 5, 2010, 3:36:45 PM (12 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Message:

Reposition assignment for the Data Form field label, so it's not overwritten.

Author: ralphm.
Fixes #60.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/test/test_data_form.py

    r80 r85  
    102102        self.assertEqual('text-single', field.fieldType)
    103103        self.assertEqual('test', field.var)
     104
     105
     106    def test_labelAndOptions(self):
     107        """
     108        The label should be set, even if there are options with labels as dict.
     109        """
     110        field = data_form.Field(label='test',
     111                                options={'test2': 'test 2', 'test3': 'test 3'})
     112        self.assertEqual('test', field.label)
    104113
    105114
Note: See TracChangeset for help on using the changeset viewer.