#NEWLINE# def test_position( self ) : #NEWLINE# #INDENT# '\n        Test finding element at position.\n        ' #NEWLINE# xp = XPathQuery ( '/foo/bar[2]' ) #NEWLINE# self . assertEquals ( xp . matches ( self . e ) , 1 ) #NEWLINE# self . assertEquals ( xp . queryForNodes ( self . e ) , [ self . bar1 ] )