#NEWLINE# def test_node_printing( self ) : #NEWLINE# #INDENT# "Test that the tgrep print operator ' is properly ignored." #NEWLINE# tree = ParentedTree . fromstring ( '(S (n x) (N x))' ) #NEWLINE# self . assertEqual ( list ( tgrep . tgrep_positions ( 'N' , [ self ] ) ) , list ( tgrep . tgrep_positions ( "'N" , [ tree ] ) ) ) #NEWLINE# self . assertEqual ( list ( tgrep . tgrep_positions ( '/[Nn]/' , [ tree ] ) ) , list ( tgrep . tgrep_positions ( "'/[Nn]/" , [ tree ] ) ) )