#NEWLINE# def test_extract_xml_data_from_attribute( self ) : #NEWLINE# #INDENT# xml = "<person name='jojo'>jojotext</person>" #NEWLINE# field = XMLCharField ( path = '/person' , attribute = 'name' , root = None ) #NEWLINE# self . assertEquals ( field . get_prep_value ( field ) , 'jojo' )