def __check_update_ok(self):

        tile_class_filter = (TC_SINGLE_SCENE,
                             TC_SUPERSEDED)
        time_tuple = self.db.dataset_older_than_database(
                self.dataset_dict['dataset_id'],
                self.dataset_dict['datetime_processed'],
                tile_class_filter)
        
        if time_tuple is not None:  
            disk_datetime_processed, database_datetime_processed, tile_ingested_datetime = time_tuple          
            if (disk_datetime_processed == database_datetime_processed):
                skip_message = 'Dataset has already been ingested' 
            elif disk_datetime_processed < database_datetime_processed:
                    skip_message = 'Dataset on disk is older than dataset in DB'
            else:
                skip_message = 'Dataset on disk was created after currently ingested contents'
            
            skip_message += ' (Disk = %s, DB = %s, Ingested = %s)' % time_tuple
                
            raise DatasetSkipError(skip_message)
testing if a ValueError will be raised when the duration attribute
dataset/ETHPy150Open GeoscienceAustralia/agdc/src/abstract_ingester/dataset_record.py/DatasetRecord.__check_update_ok--crossover with--dataset/ETHPy150Open eoyilmaz/anima/tests/previs/test_duration_mixin.py/DurationAttrMixinTestCase.test_duration_attribute_is_negative