#NEWLINE# def test_node_quoted( self ) : #NEWLINE# #INDENT# '\n        Test selecting nodes using quoted node names.\n        ' #NEWLINE# tree = ParentedTree . fromstring ( '(N ("N" x) (N" x) ("\\" x))' ) #NEWLINE# self . assertEqual ( list ( tgrep . tgrep_positions ( '"N"' , [ tree ] ) ) , [ [ ( ) ] ] ) #NEWLINE# self . assertEqual ( list ( tgrep . tgrep_positions ( '"\\"N\\""' , [ tree ] ) ) , [ [ ( 0 , ) ] ] ) #NEWLINE# self . assertEqual ( list ( tgrep . tgrep_positions ( '"N\\""' , [ tree ] ) ) , [ [ ( 1 , ) ] ] ) #NEWLINE# self . assertEqual ( list ( tgrep . tgrep_positions ( '"\\"\\\\\\""' , [ tree ] ) ) , [ [ ( 2 , ) ] ] )