def validate_repository(basic_url): val = Validator(basic_url, timeout=40) val.check_identify_base_url() val.validate_XML('Identify') val.validate_XML('ListRecords') val.check_resumption_token('ListRecords') val.reasonable_batch_size('ListRecords') val.dc_language_ISO() val.dc_date_ISO() val.minimal_dc_elements() if val.granularity == 'day': val.incremental_harvesting('ListRecords', 'day') elif val.granularity == 'full': val.incremental_harvesting('ListRecords', 'day') val.incremental_harvesting('ListRecords', 'full') val.dc_identifier_abs() val.check_deleting_strategy() val.check_double_utf8() val.check_handle() return val