def test_through_scale_change():
 t0 = Time(1.0, format='cxcsec')
 t1 = Time(123456789000.0, format='cxcsec')
 dt_tt = (t1 - t0)
 dt_tai = (t1.tai - t0.tai)
 assert allclose_jd(dt_tt.jd1, dt_tai.jd1)
 assert allclose_jd2(dt_tt.jd2, dt_tai.jd2)

def test_through_scale_change ( ) : t0 = Time ( 1.0 , format = 'cxcsec' ) t1 = Time ( 123456789000.0 , format = 'cxcsec' ) dt_tt = ( t1 - t0 ) dt_tai = ( t1 . tai - t0 . tai ) assert allclose_jd ( dt_tt . jd1 , dt_tai . jd1 ) assert allclose_jd2 ( dt_tt . jd2 , dt_tai . jd2 )
check that precision holds through scale change .