'One-failure trigger rule success'

def test_one_failure_tr_success(self):

    ti = self._get_task_instance(TriggerRule.ONE_FAILED)
    dep_statuses = tuple(TriggerRuleDep()._evaluate_trigger_rule(ti=ti, successes=0, skipped=2, failed=2, upstream_failed=0, done=2, flag_upstream_failed=False, session='Fake    Session'))
    self.assertEqual(len(dep_statuses), 0)
    dep_statuses = tuple(TriggerRuleDep()._evaluate_trigger_rule(ti=ti, successes=0, skipped=2, failed=0, upstream_failed=2, done=2, flag_upstream_failed=False, session='Fake    Session'))
    self.assertEqual(len(dep_statuses), 0)
