Example #1
0
 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")
Example #2
0
 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")
Example #3
0
 def test_two_true(self):
     environ = {'test_number': 4}
     p = predicates.All(EqualsFour(), GreaterThan(3))
     self.eval_met_predicate(p, environ)
Example #4
0
 def test_one_true(self):
     environ = {'test_number': 2}
     p = predicates.All(EqualsTwo())
     self.eval_met_predicate(p, environ)