def METHOD_NAME(self):
    cube = iris.tests.stock.lat_lon_cube()
    lat_cs = copy.copy(cube.coord("latitude").coord_system)
    lat_cs.semi_major_axis = 7000000
    cube.coord("latitude").coord_system = lat_cs
    lon_cs = copy.copy(cube.coord("longitude").coord_system)
    lon_cs.semi_major_axis = 7000001
    cube.coord("longitude").coord_system = lon_cs
    with self.assertRaises(ValueError):
        get_xy_dim_coords(cube)