def METHOD_NAME(self):
    with fits.open(self.data("comp.fits")) as h1:
        h1.writeto(self.temp("tmp.fits"), overwrite=True, checksum=True)
        with fits.open(self.temp("tmp.fits"), checksum=True) as h2:
            assert np.all(h1[1].data == h2[1].data)
            assert "CHECKSUM" in h2[0].header
            assert h2[0].header["CHECKSUM"] == "D8iBD6ZAD6fAD6ZA"
            assert "DATASUM" in h2[0].header
            assert h2[0].header["DATASUM"] == "0"
            assert "CHECKSUM" in h2[1].header
            assert h2[1].header["CHECKSUM"] == "ZeAbdb8aZbAabb7a"
            assert "DATASUM" in h2[1].header
            assert h2[1].header["DATASUM"] == "113055149"