def test_validate_faulty_wcs():
 h = fits.Header()
 h[u'RADESYSA'] = u'ICRS'
 h[u'PV2_1'] = 1.0
 hdu = fits.PrimaryHDU([[0]], header=h)
 hdulist = fits.HDUList([hdu])
 wcs.validate(hdulist)

def test_validate_faulty_wcs ( ) : h = fits . Header ( ) h [ u'RADESYSA' ] = u'ICRS' h [ u'PV2_1' ] = 1.0 hdu = fits . PrimaryHDU ( [ [ 0 ] ] , header = h ) hdulist = fits . HDUList ( [ hdu ] ) wcs . validate ( hdulist )
from github issue #2053 .