def test_fromDictOptions(self):
        fieldDict = {'options': {'value1': 'label1',
                                 'value2': 'label2'}}
        field = data_form.Field.fromDict(fieldDict)
        self.assertEqual(2, len(field.options))
        options = {}
        for option in field.options:
            options[option.value] = option.label

        self.assertEqual(options, fieldDict['options'])
The field options are set using the key 'options'.
dataset/ETHPy150Open ralphm/wokkel/wokkel/test/test_data_form.py/FieldTest.test_fromDictOptions