def test(self): task = core.Task() current = stages.CurrentState("current") self.assertEqual(current.name, "current") current.timeout = 1.23 self.assertEqual(current.timeout, 1.23) task.add(current) # ownership of current was passed to task with self.assertRaises(TypeError): current.name task.add(stages.Connect("connect", [])) task.add(stages.FixedState())
def test_Connect(self): planner = core.PipelinePlanner() planner2 = core.PipelinePlanner() stage = stages.Connect("connect", [("planner", planner), ("planner2", planner2)])
def test_Connect(self): planner = core.PipelinePlanner() stage = stages.Connect("connect", [("group1", planner), ("group2", planner)])