def METHOD_NAME(self, home_is_temp):
    bright = np.rec.array(
        [
            (1, "Serius", -1.45, "A1V"),
            (2, "Canopys", -0.73, "F0Ib"),
            (3, "Rigil Kent", -0.1, "G2V"),
        ],
        formats="int16,a20,float32,a10",
        names="order,name,mag,Sp",
    )
    hdu = fits.BinTableHDU(bright)
    hdu.dump(self.temp("data.txt"), self.temp("cdfile.txt"), self.temp("hfile.txt"))
    with pytest.raises(OSError, match="already exists"):
        hdu.dump(
            self.temp("data.txt"),
            self.temp("cdfile.txt"),
            self.temp("hfile.txt"),
            overwrite=False,
        )
    hdu.dump(
        self.temp("data.txt"),
        self.temp("cdfile.txt"),
        self.temp("hfile.txt"),
        overwrite=True,
    )
    fits.BinTableHDU.load(
        self.temp("data.txt"), self.temp("cdfile.txt"), self.temp("hfile.txt")
    )
    self.copy_file("tb.fits")
    with fits.open(self.temp("tb.fits")) as hdul:
        hdu = hdul[1]
        hdu.dump()
    assert os.path.exists(os.path.expanduser(self.temp("tb.txt")))