def test_has_image_data_mixed_cat(self): """ Check catalog extension of mixed image/cat file for image data. """ with fits.open(self.hh_tstfyl) as hdus: assert utils.has_image_data(hdus, which_hdu=1) is False
def test_has_image_data_mixed(self): """ Check primary (default) of mixed image/cat file for image data. """ with fits.open(self.hh_tstfyl) as hdus: assert utils.has_image_data(hdus) is True
def test_has_image_data_good(self): """ Check primary of image file for image data. """ with fits.open(self.m13_tstfyl) as hdus: assert utils.has_image_data(hdus) is True
def test_has_image_data_bad_high_hdu(self): """ Check non-existant extension of image file for image data. """ with fits.open(self.m13_tstfyl) as hdus: assert utils.has_image_data(hdus, which_hdu=1) is False
def test_has_image_data(self): """ Check primary of catalog file for image data. """ with fits.open(self.table_tstfyl) as hdus: assert utils.has_image_data(hdus) is False