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