def test_detect_bzipped(self):

        with ignore_warnings():
            assert len(fits.open(self._make_bzip2_file('test0.xx'))) == 5
Test detection of a bzip2 file when the extension is not .bz2.
dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/tests/test_core.py/TestFileFunctions.test_detect_bzipped