def test_condition_false_when_predicate_false_does_nothing(self): # Arrange # Act PyCondition.false(False, "this should be false") # Assert self.assertTrue(True) # ValueError not raised
def test_false_when_predicate_false_does_nothing(self): # Arrange, Act, Assert: ValueError not raised PyCondition.false(False, "this should be False")
def test_false_when_predicate_true_raises_value_error(self): # Arrange, Act, Assert with pytest.raises(ValueError): PyCondition.false(True, "predicate")