def test_detect_gzipped(self):

        with ignore_warnings():
            assert len(fits.open(self._make_gzip_file('test0.fz'))) == 5
Test detection of a gzip file when the extension is not .gz.
dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/tests/test_core.py/TestFileFunctions.test_detect_gzipped