def METHOD_NAME(val, validator_strict):
    with pytest.raises(ValueError) as validation_failure:
        validator_strict.validate_coerce(val)
    assert "Invalid value" in str(validation_failure.value)