def test_fk5_galactic():
 fk5 = FK5(ra=(1 * u.deg), dec=(2 * u.deg))
 direct = fk5.transform_to(Galactic)
 indirect = fk5.transform_to(FK4).transform_to(Galactic)
 assert (direct.separation(indirect).degree < 1e-10)
 direct = fk5.transform_to(Galactic)
 indirect = fk5.transform_to(FK4NoETerms).transform_to(Galactic)
 assert (direct.separation(indirect).degree < 1e-10)

def test_fk5_galactic ( ) : fk5 = FK5 ( ra = ( 1 * u . deg ) , dec = ( 2 * u . deg ) ) direct = fk5 . transform_to ( Galactic ) indirect = fk5 . transform_to ( FK4 ) . transform_to ( Galactic ) assert ( direct . separation ( indirect ) . degree < 1e-10 ) direct = fk5 . transform_to ( Galactic ) indirect = fk5 . transform_to ( FK4NoETerms ) . transform_to ( Galactic ) assert ( direct . separation ( indirect ) . degree < 1e-10 )
check that fk5 -> galactic gives the same as fk5 -> fk4 -> galactic .