'Tests creating a new FITS_rec object from a multi-field ndarray.'

def test_new_fitsrec(self):

    h = fits.open(self.data('tb.fits'))
    data = h[1].data
    new_data = np.array([(3, 'qwe', 4.5, False)], dtype=data.dtype)
    appended = np.append(data, new_data).view(fits.FITS_rec)
    assert repr(appended).startswith('FITS_rec(')
