def test_to_fits_1():
 fits_name = get_pkg_data_filename(u'data/dist.fits')
 w = wcs.WCS(fits_name)
 wfits = w.to_fits()
 assert isinstance(wfits, fits.HDUList)
 assert isinstance(wfits[0], fits.PrimaryHDU)
 assert isinstance(wfits[1], fits.ImageHDU)

def test_to_fits_1 ( ) : fits_name = get_pkg_data_filename ( u'data/dist.fits' ) w = wcs . WCS ( fits_name ) wfits = w . to_fits ( ) assert isinstance ( wfits , fits . HDUList ) assert isinstance ( wfits [ 0 ] , fits . PrimaryHDU ) assert isinstance ( wfits [ 1 ] , fits . ImageHDU )
test to_fits() with lookuptable distortion .