'Regression test for https://aeon.stsci.edu/ssb/trac/pyfits/ticket/199'

def test_compression_column_tforms(self):

    data2 = ((np.arange(1, 8, dtype=np.float32) * 10)[:, np.newaxis] + np.arange(1, 7))
    np.random.seed(1337)
    data1 = np.random.uniform(size=((6 * 4), (7 * 4)))
    data1[:data2.shape[0], :data2.shape[1]] = data2
    chdu = fits.CompImageHDU(data1, compressionType='RICE_1', tileSize=(6, 7))
    chdu.writeto(self.temp('test.fits'))
    with fits.open(self.temp('test.fits'), disable_image_compression=True) as h:
        assert re.match('^1PB\\(\\d+\\)$', h[1].header['TFORM1'])
        assert re.match('^1PB\\(\\d+\\)$', h[1].header['TFORM2'])
