'Test selecting nodes using quoted node names.'

def test_node_quoted(self):

    tree = ParentedTree.fromstring(u'(N    ("N"    x)    (N"    x)    ("\\"    x))')
    self.assertEqual(list(tgrep.tgrep_positions(u'"N"', [tree])), [[()]])
    self.assertEqual(list(tgrep.tgrep_positions(u'"\\"N\\""', [tree])), [[(0,)]])
    self.assertEqual(list(tgrep.tgrep_positions(u'"N\\""', [tree])), [[(1,)]])
    self.assertEqual(list(tgrep.tgrep_positions(u'"\\"\\\\\\""', [tree])), [[(2,)]])
