#NEWLINE# def test_fromElement( self ) : #NEWLINE# #INDENT# '\n        An option has a child element with the option value.\n        ' #NEWLINE# element = domish . Element ( ( NS_X_DATA , 'option' ) ) #NEWLINE# element . addElement ( 'value' , content = 'value' ) #NEWLINE# option = data_form . Option . fromElement ( element ) #NEWLINE# self . assertEqual ( 'value' , option . value ) #NEWLINE# self . assertIdentical ( None , option . label )