Beispiel #1
0
    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())
Beispiel #2
0
 def test_Connect(self):
     planner = core.PipelinePlanner()
     planner2 = core.PipelinePlanner()
     stage = stages.Connect("connect", [("planner", planner),
                                        ("planner2", planner2)])
Beispiel #3
0
 def test_Connect(self):
     planner = core.PipelinePlanner()
     stage = stages.Connect("connect", [("group1", planner),
                                        ("group2", planner)])