[tests] test uid on input params with/without link

This commit is contained in:
Fabien Castan 2017-10-31 10:49:30 +01:00
parent 1af40dac9e
commit e0c52898cc

View file

@ -45,3 +45,17 @@ def test_output_invalidation():
assert n2.input.uid() != n2inputUid # => UID has changed
assert n2.input.uid() == n3.input.uid() # => UIDs on both node are still equal
def test_inputLinkInvalidation():
"""
Input links should not change the invalidation.
"""
graph = Graph('')
n1 = graph.addNewNode('SampleNode')
n2 = graph.addNewNode('SampleNode')
graph.addEdges((n1.input, n2.input))
assert n1.input.uid() == n2.input.uid()
assert n1.output.value == n2.output.value