def test_has_catalog_data_good_hdu(self): """ Check explicit HDU of catalog file for catalog data. """ with fits.open(self.table_tstfyl) as hdus: assert utils.has_catalog_data(hdus, which_hdu=1) is True
def test_has_catalog_data_default(self): """ Check default HDU of catalog file for catalog data. """ with fits.open(self.table_tstfyl) as hdus: assert utils.has_catalog_data(hdus) is True