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