#NEWLINE# def test_text_for_many( ) : #NEWLINE# #INDENT# tree = etree . XML ( "<top><container><element value='1'>one</element><element value='2'>two</element></container></top>" ) #NEWLINE# result = xpath . xpb . container . element . text_ . apply_ ( tree ) #NEWLINE# assert ( set ( result ) == set ( [ 'one' , 'two' ] ) )