'Test copying the values of a Time object by passing it into the
Time initializer.'

@pytest.mark.parametrize('value', [2455197.5, [2455197.5]])
def test_copy_time(self, value):

    t = Time(value, format='jd', scale='utc')
    t2 = Time(t, copy=False)
    assert np.all(((t.jd - t2.jd) == 0))
    assert np.all(((t - t2).jd == 0))
    assert (t._time.jd1 is t2._time.jd1)
    assert (t._time.jd2 is t2._time.jd2)
    t2 = Time(t, copy=True)
    assert np.all(((t.jd - t2.jd) == 0))
    assert np.all(((t - t2).jd == 0))
    assert (t._time.jd1 is not t2._time.jd1)
    assert (t._time.jd2 is not t2._time.jd2)
    t2 = Time(t, format='iso', scale='tai', precision=1)
    assert (t2.value == '2010-01-01    00:00:34.0')
    t2 = Time(t, format='iso', scale='tai', out_subfmt='date')
    assert (t2.value == '2010-01-01')
