def METHOD_NAME(annual_cycle_cube):
    """Test amplitude calculation when wrong coordinate is given."""
    with pytest.raises(iris.exceptions.CoordinateNotFoundError):
        amplitude(annual_cycle_cube, ['year', 'invalid_coord'])