def test_frame_attr_getattr():
 sc = SkyCoord(1, 2, frame=u'icrs', unit=u'deg', equinox=u'J1999', obstime=u'J2001')
 assert (sc.equinox == u'J1999')
 assert (sc.obstime == u'J2001')
 sc = SkyCoord(1, 2, frame=u'fk4', unit=u'deg', equinox=u'J1999', obstime=u'J2001')
 assert (sc.equinox == Time(u'J1999'))
 assert (sc.obstime == Time(u'J2001'))
 sc = SkyCoord(1, 2, frame=u'fk4', unit=u'deg', equinox=u'J1999')
 assert (sc.equinox == Time(u'J1999'))
 assert (sc.obstime == Time(u'J1999'))

def test_frame_attr_getattr ( ) : sc = SkyCoord ( 1 , 2 , frame = u'icrs' , unit = u'deg' , equinox = u'J1999' , obstime = u'J2001' ) assert ( sc . equinox == u'J1999' ) assert ( sc . obstime == u'J2001' ) sc = SkyCoord ( 1 , 2 , frame = u'fk4' , unit = u'deg' , equinox = u'J1999' , obstime = u'J2001' ) assert ( sc . equinox == Time ( u'J1999' ) ) assert ( sc . obstime == Time ( u'J2001' ) ) sc = SkyCoord ( 1 , 2 , frame = u'fk4' , unit = u'deg' , equinox = u'J1999' ) assert ( sc . equinox == Time ( u'J1999' ) ) assert ( sc . obstime == Time ( u'J1999' ) )
when accessing frame attributes like equinox .