+ def test4(self):
+ """ Verify the execution is stoped if no resource can run a task.
+ """
+ proc = self.l.load("samples/wlm_error.xml")
+ self.e.RunW(proc,0)
+ self.assertEqual(proc.getState(),pilot.FAILED)
+ self.assertEqual(proc.getChildByName("ErrorNode").getState(),pilot.ERROR)
+
+ def test5(self):
+ """ Foreach with 1000 points and several nodes in the block.
+ """
+ proc = self.l.load("samples/wlm_complex_foreach.xml")
+ self.e.RunW(proc,0)
+ self.assertEqual(proc.getState(),pilot.DONE)
+