summaryrefslogtreecommitdiff
path: root/taskflow/tests/unit/patterns/test_graph_flow.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2015-03-30 12:27:24 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2015-03-30 13:05:43 -0700
commitbb0af4f81d966d3178f9eb4f3fa65f0bc5dbadf3 (patch)
treec2f5e9c1f75c2bfed545389bab1a00936dd0bb15 /taskflow/tests/unit/patterns/test_graph_flow.py
parentd24eebf19487a365c8e517ae5b6f71daeab1a8be (diff)
downloadtaskflow-bb0af4f81d966d3178f9eb4f3fa65f0bc5dbadf3.tar.gz
Use 'node' terminology instead of 'item' terminology
Since graphs are composed of 'nodes' it seems more appropriate to use that terminology (which is known to people with graph experience) instead of the non descriptive and/or standard 'item' terminology. Change-Id: I04a4521386d3cdf7e58fb9fa8cf26c00443c2cf6
Diffstat (limited to 'taskflow/tests/unit/patterns/test_graph_flow.py')
-rw-r--r--taskflow/tests/unit/patterns/test_graph_flow.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/taskflow/tests/unit/patterns/test_graph_flow.py b/taskflow/tests/unit/patterns/test_graph_flow.py
index 8dad447..588361c 100644
--- a/taskflow/tests/unit/patterns/test_graph_flow.py
+++ b/taskflow/tests/unit/patterns/test_graph_flow.py
@@ -182,14 +182,14 @@ class GraphFlowTest(test.TestCase):
task1 = _task('task1')
task2 = _task('task2')
f = gf.Flow('test').add(task2)
- self.assertRaisesRegexp(ValueError, 'Item .* not found to link from',
+ self.assertRaisesRegexp(ValueError, 'Node .* not found to link from',
f.link, task1, task2)
def test_graph_flow_link_to_unknown_node(self):
task1 = _task('task1')
task2 = _task('task2')
f = gf.Flow('test').add(task1)
- self.assertRaisesRegexp(ValueError, 'Item .* not found to link to',
+ self.assertRaisesRegexp(ValueError, 'Node .* not found to link to',
f.link, task1, task2)
def test_graph_flow_link_raises_on_cycle(self):
@@ -245,7 +245,7 @@ class TargetedGraphFlowTest(test.TestCase):
task1 = _task('task1', provides=['a'], requires=[])
task2 = _task('task2', provides=['b'], requires=['a'])
f.add(task1)
- self.assertRaisesRegexp(ValueError, '^Item .* not found',
+ self.assertRaisesRegexp(ValueError, '^Node .* not found',
f.set_target, task2)
def test_targeted_flow_one_node(self):