def METHOD_NAME(tmp_path, fformat, grid_property, keyword):
    assume(keyword != grid_property.name)
    filename = tmp_path / f"gridprop.{fformat}"
    grid_property.to_file(filename, fformat=fformat, name=grid_property.name)
    with pytest.raises(xtgeo.KeywordNotFoundError):
        xtgeo.gridproperty_from_file(
            filename, fformat=fformat, name=keyword, grid=grid_property.geometry
        )