def test_two_mixed(self): environ = {'test_number': 5} p = predicates.All(EqualsFour(), GreaterThan(3)) self.eval_unmet_predicate(p, environ, "Number 5 doesn't equal 4")
def test_one_false(self): environ = {'test_number': 3} p = predicates.All(EqualsTwo()) self.eval_unmet_predicate(p, environ, "Number 3 doesn't equal 2")
def test_two_true(self): environ = {'test_number': 4} p = predicates.All(EqualsFour(), GreaterThan(3)) self.eval_met_predicate(p, environ)
def test_one_true(self): environ = {'test_number': 2} p = predicates.All(EqualsTwo()) self.eval_met_predicate(p, environ)