Example #1
0
    def test_all_success_early_stop(self):
        seq = SequentialAction(
            actions=[ACTION_FALSE, ACTION_TRUE, ACTION_TRUE],
            all_success=True,
            early_stop=True)

        self.assertFalse(seq.execute(generate_composite_event()).success)
Example #2
0
    def test_any_success_none_pass(self):
        seq = SequentialAction(
            actions=[ACTION_FALSE, ACTION_FALSE, ACTION_FALSE],
            all_success=False,
            early_stop=False)

        self.assertFalse(seq.execute(generate_composite_event()).success)