'Initialize from one or more Time objects'

def test_init_from_time_objects(self):

    t1 = Time('2007:001', scale='tai')
    t2 = Time(['2007-01-02', '2007-01-03'], scale='utc')
    t3 = Time([t1, t2])
    assert (len(t3) == 3)
    assert (t3.scale == t1.scale)
    assert (t3.format == t1.format)
    assert np.all((t3.value == np.concatenate([[t1.yday], t2.tai.yday])))
    t3 = Time(t1)
    assert t3.isscalar
    assert (t3.scale == t1.scale)
    assert (t3.format == t1.format)
    assert np.all((t3.value == t1.value))
    t3 = Time(t1, scale='utc')
    assert (t3.scale == 'utc')
    assert np.all((t3.value == t1.utc.value))
    t3 = Time([t1, t2], scale='tt')
    assert (t3.scale == 'tt')
    assert (t3.format == t1.format)
    assert np.all((t3.value == np.concatenate([[t1.tt.yday], t2.tt.yday])))
    mjd = np.arange(50000.0, 50006.0)
    frac = np.arange(0.0, 0.999, 0.2)
    t4 = Time((mjd[:, np.newaxis] + frac), format='mjd', scale='utc')
    t5 = Time([t4[:2], t4[4:5]])
    assert (t5.shape == (3, 5))
