@pytest.mark.parametrize(u'testframe', totest_frames)
def test_gcrs_icrs_moonish(testframe):
 moonish = GCRS(MOONDIST_CART, obstime=testframe.obstime)
 moonicrs = moonish.transform_to(ICRS)
 assert ((0.97 * u.au) < moonicrs.distance < (1.03 * u.au))

@ pytest . mark . parametrize ( u'testframe' , totest_frames ) def test_gcrs_icrs_moonish ( testframe ) : moonish = GCRS ( MOONDIST_CART , obstime = testframe . obstime ) moonicrs = moonish . transform_to ( ICRS ) assert ( ( 0.97 * u . au ) < moonicrs . distance < ( 1.03 * u . au ) )
check that something like the moon goes to about the right distance from the icrs origin when starting from gcrs .