def METHOD_NAME(val, validator_min):
    with pytest.raises(ValueError) as validation_failure:
        validator_min.validate_coerce(val)
    assert "in the interval [-1.0, inf]" in str(validation_failure.value)