'A simple test of the dump/load methods; dump the data, column, and
header files and try to reload the table from them.'

def test_dump_load_round_trip(self):

    hdul = fits.open(self.data('table.fits'))
    tbhdu = hdul[1]
    datafile = self.temp('data.txt')
    cdfile = self.temp('coldefs.txt')
    hfile = self.temp('header.txt')
    tbhdu.dump(datafile, cdfile, hfile)
    new_tbhdu = fits.BinTableHDU.load(datafile, cdfile, hfile)
    assert comparerecords(tbhdu.data, new_tbhdu.data)
    assert (str(tbhdu.header) == str(new_tbhdu.header))
