def METHOD_NAME(self):
    """Check SPoint raises error if providing bad latitude."""
    # Test latitude outside range
    lon = 0
    lat = np.pi
    with pytest.raises(ValueError):
        SPoint(lon, lat)
    # Test inf
    lon = 0
    lat = np.inf
    with pytest.raises(ValueError):
        SPoint(lon, lat)