def METHOD_NAME(probability_cube):
    """Test an exception is raised if no threshold coordinate is found."""
    cube = probability_cube[0]
    threshold = cube.coord(var_name="threshold")
    cube.remove_coord(threshold)
    with pytest.raises(ValueError, match="Cube does not have a threshold coordinate"):
        invert_probabilities(cube)