'Tests that malformed NAXISj values are fixed sensibly.'

def test_fix_malformed_naxisj(self):

    hdu = fits.open(self.data('arange.fits'))
    hdu[0].header['NAXIS1'] = 11.0
    hdu[0].header['NAXIS2'] = '10.0'
    hdu[0].header['NAXIS3'] = '7'
    hdu[0]._axes = [11.0, '10.0', '7']
    hdu.verify('silentfix')
    assert (hdu[0].header['NAXIS1'] == 11)
    assert (hdu[0].header['NAXIS2'] == 10)
    assert (hdu[0].header['NAXIS3'] == 7)
