#NEWLINE# def test_attributeWithValueAny( self ) : #NEWLINE# #INDENT# '\n        Test find nodes with attribute having value.\n        ' #NEWLINE# xp = XPathQuery ( "/foo/*[@attrib2='value2']" ) #NEWLINE# self . assertEquals ( xp . matches ( self . e ) , True ) #NEWLINE# self . assertEquals ( xp . queryForNodes ( self . e ) , [ self . bar2 ] )