def test_obstime():
 b1950 = Time(u'B1950', scale=u'utc')
 j1975 = Time(u'J1975', scale=u'utc')
 fk4_50 = FK4(ra=(1 * u.deg), dec=(2 * u.deg), obstime=b1950)
 fk4_75 = FK4(ra=(1 * u.deg), dec=(2 * u.deg), obstime=j1975)
 icrs_50 = fk4_50.transform_to(ICRS)
 icrs_75 = fk4_75.transform_to(ICRS)
 assert (icrs_50.ra.degree != icrs_75.ra.degree)
 assert (icrs_50.dec.degree != icrs_75.dec.degree)

def test_obstime ( ) : b1950 = Time ( u'B1950' , scale = u'utc' ) j1975 = Time ( u'J1975' , scale = u'utc' ) fk4_50 = FK4 ( ra = ( 1 * u . deg ) , dec = ( 2 * u . deg ) , obstime = b1950 ) fk4_75 = FK4 ( ra = ( 1 * u . deg ) , dec = ( 2 * u . deg ) , obstime = j1975 ) icrs_50 = fk4_50 . transform_to ( ICRS ) icrs_75 = fk4_75 . transform_to ( ICRS ) assert ( icrs_50 . ra . degree != icrs_75 . ra . degree ) assert ( icrs_50 . dec . degree != icrs_75 . dec . degree )
checks to make sure observation time is accounted for at least in fk4 <-> icrs transformations .