def test_fromElementLabel(self):

        element = domish.Element((NS_X_DATA, 'option'))
        element.addElement('value', content='value')
        element['label'] = 'label'
        option = data_form.Option.fromElement(element)

        self.assertEqual('label', option.label)
An option label is an attribute on the option element.
dataset/ETHPy150Open ralphm/wokkel/wokkel/test/test_data_form.py/OptionTest.test_fromElementLabel