'Tests a rare corner case where the columns of an existing table
are used to create a new table with the new_table function.  In this
specific case, however, the existing table\'s data has not been read
yet, so new_table has to get at it through the Delayed proxy.
Note: Although this previously tested new_table it now uses
BinTableHDU.from_columns directly, around which new_table is a mere
wrapper.'

def test_table_from_columns_of_other_table(self):

    hdul = fits.open(self.data('table.fits'))
    assert isinstance(hdul[1].columns._arrays[0], Delayed)
    t = fits.BinTableHDU.from_columns(hdul[1].columns)
    assert (not isinstance(hdul[1].columns._arrays[0], Delayed))
    t.writeto(self.temp('test.fits'))
    with fits.open(self.temp('test.fits')) as hdul2:
        assert comparerecords(hdul[1].data, hdul2[1].data)
