'Check input is parsed correctly'

def test_input(self):

    geocentric = EarthLocation(self.x, self.y, self.z)
    assert np.all((geocentric == self.location))
    geocentric2 = EarthLocation(self.x.value, self.y.value, self.z.value, self.x.unit)
    assert np.all((geocentric2 == self.location))
    geodetic = EarthLocation(self.lon, self.lat, self.h)
    assert np.all((geodetic == self.location))
    geodetic2 = EarthLocation(self.lon.to_value(u.degree), self.lat.to_value(u.degree), self.h.to_value(u.m))
    assert np.all((geodetic2 == self.location))
    geodetic3 = EarthLocation(self.lon, self.lat)
    assert allclose_m14(geodetic3.lon.value, self.location.lon.value)
    assert allclose_m14(geodetic3.lat.value, self.location.lat.value)
    assert (not np.any(isclose_m14(geodetic3.height.value, self.location.height.value)))
    geodetic4 = EarthLocation(self.lon, self.lat, self.h[(-1)])
    assert allclose_m14(geodetic4.lon.value, self.location.lon.value)
    assert allclose_m14(geodetic4.lat.value, self.location.lat.value)
    assert allclose_m14(geodetic4.height[(-1)].value, self.location.height[(-1)].value)
    assert (not np.any(isclose_m14(geodetic4.height[:(-1)].value, self.location.height[:(-1)].value)))
    geocentric5 = EarthLocation(self.x, self.y, self.z, u.pc)
    assert (geocentric5.unit is u.pc)
    assert (geocentric5.x.unit is u.pc)
    assert (geocentric5.height.unit is u.pc)
    assert allclose_m14(geocentric5.x.to_value(self.x.unit), self.x.value)
    geodetic5 = EarthLocation(self.lon, self.lat, self.h.to(u.pc))
    assert (geodetic5.unit is u.pc)
    assert (geodetic5.x.unit is u.pc)
    assert (geodetic5.height.unit is u.pc)
    assert allclose_m14(geodetic5.x.to_value(self.x.unit), self.x.value)
