def test_apply_decorators(self):
    old_node = node(apply_g(decorated_identity), 'input', 'output', name='node')
    pattern = "The node's `decorate` API will be deprecated in Kedro 0.18.0.Please use a node's Hooks to extend the node's behaviour in a pipeline.For more information, please visithttps://kedro.readthedocs.io/en/stable/07_extend_kedro/04_hooks.html"
    with pytest.warns(DeprecationWarning, match=re.escape(pattern)):
        new_node = old_node.decorate(apply_h, apply_ij)
    result = new_node.run(dict(input=1))
    assert (old_node.name == new_node.name)
    assert ('output' in result)
    assert (result['output'] == 'f(g(ij(h(1))))')
def test_apply_decorators(self):
    old_node = node(apply_g(decorated_identity), 'input', 'output', name='node')
    pattern = "The node's `decorate` API will be deprecated in Kedro 0.18.0.Please use a node's Hooks to extend the node's behaviour in a pipeline.For more information, please visithttps://kedro.readthedocs.io/en/stable/07_extend_kedro/04_hooks.html"
    with pytest.warns(DeprecationWarning, match=re.escape(pattern)):
        new_node = old_node.decorate(apply_h, apply_ij)
    result = new_node.run(dict(input=1))
    assert (old_node.name == new_node.name)
    assert ('output' in result)
    assert (result['output'] == 'f(g(ij(h(1))))')