'Check that location creates an EarthLocation object, and that
such objects can be used as arguments.'

def test_location(self):

    lat = 19.48125
    lon = (-155.933222)
    t = Time(['2006-01-15    21:24:37.5'], format='iso', scale='utc', precision=6, location=(lon, lat))
    assert isinstance(t.location, EarthLocation)
    location = EarthLocation(lon, lat)
    t2 = Time(['2006-01-15    21:24:37.5'], format='iso', scale='utc', precision=6, location=location)
    assert isinstance(t2.location, EarthLocation)
    assert (t2.location == t.location)
    t3 = Time(['2006-01-15    21:24:37.5'], format='iso', scale='utc', precision=6, location=(location.x, location.y, location.z))
    assert isinstance(t3.location, EarthLocation)
    assert (t3.location == t.location)
