def test_failure_with_custom_message(self): environ = {'test_number': 4} # It must not equal 4 p = predicates.Not(EqualsFour(), msg='It must not equal four') # It equals 4! self.eval_unmet_predicate(p, environ, 'It must not equal four')
def test_success(self): environ = {'test_number': 5} # It must not equal 4 p = predicates.Not(EqualsFour()) # It doesn't equal 4! self.eval_met_predicate(p, environ)
def test_failure(self): environ = {'test_number': 4} # It must NOT equal 4 p = predicates.Not(EqualsFour()) # It equals 4! self.eval_unmet_predicate(p, environ, 'The condition must not be met')