'Tests appending a Simple Table ExtensionHDU to a empty HDUList.'

def test_append_table_extension_to_empty_list(self):

    hdul = fits.HDUList()
    hdul1 = fits.open(self.data('tb.fits'))
    hdul.append(hdul1[1])
    info = [(0, 'PRIMARY', 1, 'PrimaryHDU', 4, (), '', ''), (1, '', 1, 'BinTableHDU', 24, '2R    x    4C', '[1J,    3A,    1E,    1L]', '')]
    assert (hdul.info(output=False) == info)
    hdul.writeto(self.temp('test-append.fits'))
    assert (fits.info(self.temp('test-append.fits'), output=False) == info)
