'Test replicate method'

def test_replicate(self):

    t = Time('2000:001', format='yday', scale='tai', location=('45d', '45d'))
    t_yday = t.yday
    t_loc_x = t.location.x.copy()
    t2 = t.replicate()
    assert (t.yday == t2.yday)
    assert (t.format == t2.format)
    assert (t.scale == t2.scale)
    assert (t.location == t2.location)
    t2._time.jd1 += 100.0
    del t.cache
    del t2.cache
    assert (t.yday == t2.yday)
    assert (t.yday != t_yday)
    t2_loc_x_view = t2.location.x
    t2_loc_x_view[()] = 0
    assert (t2.location.x == t2_loc_x_view)
    assert (t.location.x == t2.location.x)
    assert (t.location.x != t_loc_x)
