'Test node name matching with the search_leaves flag set to False.'

def test_node_noleaves(self):

    tree = ParentedTree.fromstring(u'(S    (A    (T    x))    (B    (N    x)))')
    self.assertEqual(list(tgrep.tgrep_positions(u'x', [tree])), [[(0, 0, 0), (1, 0, 0)]])
    self.assertEqual(list(tgrep.tgrep_positions(u'x', [tree], False)), [[]])
