def test_none_transform():
 sc = SkyCoord((0 * u.deg), (1 * u.deg))
 sc_arr = SkyCoord((0 * u.deg), ([1, 2] * u.deg))
 sc2 = sc.transform_to(ICRS)
 assert ((sc.ra == sc2.ra) and (sc.dec == sc2.dec))
 sc5 = sc.transform_to(u'fk5')
 assert (sc5.ra == sc2.transform_to(u'fk5').ra)
 sc_arr2 = sc_arr.transform_to(ICRS)
 sc_arr5 = sc_arr.transform_to(u'fk5')
 npt.assert_array_equal(sc_arr5.ra, sc_arr2.transform_to(u'fk5').ra)

def test_none_transform ( ) : sc = SkyCoord ( ( 0 * u . deg ) , ( 1 * u . deg ) ) sc_arr = SkyCoord ( ( 0 * u . deg ) , ( [ 1 , 2 ] * u . deg ) ) sc2 = sc . transform_to ( ICRS ) assert ( ( sc . ra == sc2 . ra ) and ( sc . dec == sc2 . dec ) ) sc5 = sc . transform_to ( u'fk5' ) assert ( sc5 . ra == sc2 . transform_to ( u'fk5' ) . ra ) sc_arr2 = sc_arr . transform_to ( ICRS ) sc_arr5 = sc_arr . transform_to ( u'fk5' ) npt . assert_array_equal ( sc_arr5 . ra , sc_arr2 . transform_to ( u'fk5' ) . ra )
ensure that transforming from a skycoord with no frame provided works like icrs .