def test_condition_is_none_when_arg_is_none_does_nothing(self): # Arrange # Act PyCondition.none(None, "param") # Assert self.assertTrue(True) # ValueError not raised
def none(): PyCondition.none(None, "param")
def test_is_none_when_arg_is_none_does_nothing(self): # Arrange, Act, Assert: ValueError not raised PyCondition.none(None, "param")
def none(): PyCondition.none(None, 'param')
def test_is_none_when_arg_not_none_raises_type_error(self): # Arrange, Act, Assert with pytest.raises(TypeError): PyCondition.none("something", "param")