def test_epochs_in_gamma_obs(self): validate_epochs(self.params[IFG_FILE_LIST], SIXTEEN_DIGIT_EPOCH_PAIR) self.params[IFG_FILE_LIST] = os.path.join(common.SML_TEST_GAMMA, 'bad_epochs_ifms_17') with pytest.raises(ConfigException): validate_epochs(self.params[IFG_FILE_LIST], SIXTEEN_DIGIT_EPOCH_PAIR)
def test_epochs_in_roipac_obs(self): validate_epochs(self.roipac_params[IFG_FILE_LIST], TWELVE_DIGIT_EPOCH_PAIR) self.roipac_params[IFG_FILE_LIST] = os.path.join( common.SML_TEST_OBS, 'bad_epochs_ifms_17') with pytest.raises(ConfigException): validate_epochs(self.roipac_params[IFG_FILE_LIST], TWELVE_DIGIT_EPOCH_PAIR)
def test_epochs_in_coherence_files(self): self.params[COH_MASK] = 1 self.params[COH_FILE_LIST] = os.path.join(common.SML_TEST_GAMMA, 'ifms_17') validate_epochs(self.params[COH_FILE_LIST], SIXTEEN_DIGIT_EPOCH_PAIR) self.params[COH_FILE_LIST] = os.path.join(common.SML_TEST_GAMMA, 'bad_epochs_ifms_17') with pytest.raises(ConfigException): validate_epochs(self.params[COH_FILE_LIST], SIXTEEN_DIGIT_EPOCH_PAIR)
def test_epochs_in_gamma_headers(self): validate_epochs(self.params[HDR_FILE_LIST], EIGHT_DIGIT_EPOCH) self.params[HDR_FILE_LIST] = os.path.join(common.SML_TEST_GAMMA, 'bad_epochs_headers') with pytest.raises(ConfigException): validate_epochs(self.params[HDR_FILE_LIST], EIGHT_DIGIT_EPOCH)