def test_authors_titles_validator_does_not_match_when_authors_are_similar_but_titles_are_too_different(): record = json.loads(pkg_resources.resource_string( __name__, os.path.join('fixtures', 'harvest_record_1804.09082.json'))) result = json.loads(pkg_resources.resource_string( __name__, os.path.join('fixtures', 'matching_wrong_result_1211.4028.json'))) assert not authors_titles_validator(record, result)
def test_authors_titles_validator_does_not_match_when_authors_are_same_but_titles_are_too_different(): record = json.loads(pkg_resources.resource_string( __name__, os.path.join('fixtures', 'harvest_record_1712.05946.json'))) result = json.loads(pkg_resources.resource_string( __name__, os.path.join('fixtures', 'matching_wrong_result_10.1103.json'))) assert not authors_titles_validator(record, result)
def test_authors_titles_validator_does_match_when_authors_are_same_and_titles_contain_perfect_match(): record = json.loads(pkg_resources.resource_string( __name__, os.path.join('fixtures', 'harvest_record_1601.02340.json'))) result = json.loads(pkg_resources.resource_string( __name__, os.path.join('fixtures', 'matching_result_1601.02340.json'))) assert authors_titles_validator(record, result)