'Check invalid input raises exception'

def test_invalid_input(self):

    with pytest.raises(TypeError):
        EarthLocation(self.lon, self.y, self.z)
    with pytest.raises(u.UnitsError):
        EarthLocation.from_geocentric(self.lon, self.lat, self.lat)
    with pytest.raises(u.UnitsError):
        EarthLocation.from_geocentric(self.h, self.lon, self.lat)
    with pytest.raises(TypeError):
        EarthLocation.from_geocentric(self.x.value, self.y.value, self.z.value)
    with pytest.raises(ValueError):
        EarthLocation.from_geocentric(self.x, self.y, self.z[:5])
    with pytest.raises(u.UnitsError):
        EarthLocation.from_geodetic(self.x, self.y, self.z)
    with pytest.raises(ValueError):
        EarthLocation.from_geodetic(self.lon, self.lat, self.h[:5])
