'Test conversion of UTC to UT1, making sure to include a leap second'

def test_utc_to_ut1(self):

    t = Time(['2012-06-30    12:00:00', '2012-06-30    23:59:59', '2012-06-30    23:59:60', '2012-07-01    00:00:00', '2012-07-01    12:00:00'], scale='utc')
    t_ut1_jd = t.ut1.jd
    t_comp = np.array([2456108.999993208, 2456109.499981634, 2456109.4999932083, 2456109.5000047823, 2456110.0000047833])
    assert allclose_jd(t_ut1_jd, t_comp)
    t_back = t.ut1.utc
    assert allclose_jd(t.jd, t_back.jd)
    tnow = Time.now()
    if INTERNET_OFF:
        with pytest.raises(IndexError):
            tnow.ut1
    else:
        tnow.ut1
