def test_tag_and_decorate(self):
    tagged_node = node(identity, 'input', 'output', tags=['hello'])
    tagged_node = tagged_node.decorate(apply_f)
    tagged_node = tagged_node.tag(['world'])
    assert ('hello' in tagged_node.tags)
    assert ('world' in tagged_node.tags)
    assert (tagged_node.run(dict(input=1))['output'] == 'f(1)')
def test_tag_and_decorate(self):
    tagged_node = node(identity, 'input', 'output', tags=['hello'])
    tagged_node = tagged_node.decorate(apply_f)
    tagged_node = tagged_node.tag(['world'])
    assert ('hello' in tagged_node.tags)
    assert ('world' in tagged_node.tags)
    assert (tagged_node.run(dict(input=1))['output'] == 'f(1)')