@pytest.mark.parametrize(u'testframe', totest_frames)
def test_gcrs_altaz_sunish(testframe):
 sun = get_sun(testframe.obstime)
 assert (sun.frame.name == u'gcrs')
 assert (((EARTHECC - 1) * u.au) < sun.distance.to(u.au) < ((EARTHECC + 1) * u.au))
 sunaa = sun.transform_to(testframe)
 assert (((EARTHECC - 1) * u.au) < sunaa.distance.to(u.au) < ((EARTHECC + 1) * u.au))

@ pytest . mark . parametrize ( u'testframe' , totest_frames ) def test_gcrs_altaz_sunish ( testframe ) : sun = get_sun ( testframe . obstime ) assert ( sun . frame . name == u'gcrs' ) assert ( ( ( EARTHECC - 1 ) * u . au ) < sun . distance . to ( u . au ) < ( ( EARTHECC + 1 ) * u . au ) ) sunaa = sun . transform_to ( testframe ) assert ( ( ( EARTHECC - 1 ) * u . au ) < sunaa . distance . to ( u . au ) < ( ( EARTHECC + 1 ) * u . au ) )
sanity-check that the sun is at a reasonable distance from any altaz .