'Test that different ellipsoids are understood, and differ'

@pytest.mark.parametrize(u'ellipsoid', ELLIPSOIDS)
def test_ellipsoid(self, ellipsoid):

    (lon, lat, h) = self.location.to_geodetic(ellipsoid)
    if (ellipsoid == self.location.ellipsoid):
        assert allclose_m8(h.value, self.h.value)
    else:
        assert (not np.all(isclose_m8(h.value, self.h.value)))
    location = EarthLocation.from_geodetic(self.lon, self.lat, self.h, ellipsoid=ellipsoid)
    if (ellipsoid == self.location.ellipsoid):
        assert allclose_m14(location.z.value, self.z.value)
    else:
        assert (not np.all(isclose_m14(location.z.value, self.z.value)))
    def test_to_value(self):
        loc = self.location
        loc_ndarray = loc.view(np.ndarray)
        assert np.all((loc.value == loc_ndarray))
        loc2 = self.location.to(u.km)
        loc2_ndarray = np.empty_like(loc_ndarray)
        for coo in (u'x', u'y', u'z'):
            loc2_ndarray[coo] = (loc_ndarray[coo] / 1000.0)
        assert np.all((loc2.value == loc2_ndarray))
        loc2_value = self.location.to_value(u.km)
        assert np.all((loc2_value == loc2_ndarray))
