def test_tree_extract(): target = Tree('target', []) tree = Tree('tree', [ target, Tree('more', [target], Token('test', 'test'))]) assert tree.extract('target') == [target]
def test_tree_extract(): target = Tree("target", []) tree = Tree("tree", [target, Tree("more", [target], Token("test", "test"))]) assert tree.extract("target") == [target]