#NEWLINE# def test_fromElementValueJID( self ) : #NEWLINE# #INDENT# '\n        Parsed jid-single field values should be of type C{unicode}.\n        ' #NEWLINE# element = domish . Element ( ( NS_X_DATA , 'field' ) ) #NEWLINE# element [ 'type' ] = 'jid-single' #NEWLINE# element . addElement ( 'value' , content = 'user@example.org' ) #NEWLINE# field = data_form . Field . fromElement ( element ) #NEWLINE# self . assertEquals ( 'user@example.org' , field . value )