summaryrefslogtreecommitdiffstats
path: root/python/tests/importer.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests/importer.py')
-rw-r--r--python/tests/importer.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/python/tests/importer.py b/python/tests/importer.py
index a412b247..40bd8cba 100644
--- a/python/tests/importer.py
+++ b/python/tests/importer.py
@@ -9,24 +9,24 @@ def test_issnl_mapping_lookup(api):
assert fi.issn2issnl('0000-0027') == '0002-0027'
assert fi.issn2issnl('0002-0027') == '0002-0027'
- assert fi.issn2issnl('9999-0027') == None
+ assert fi.issn2issnl('9999-0027') is None
- assert fi.lookup_issnl('9999-9999') == None
+ assert fi.lookup_issnl('9999-9999') is None
def test_identifiers(api):
with open('tests/files/ISSN-to-ISSN-L.snip.txt', 'r') as issn_file:
ci = CrossrefImporter(api, issn_map_file=issn_file)
- assert ci.is_issnl("1234-5678") == True
- assert ci.is_issnl("1234-5678.") == False
- assert ci.is_issnl("12345678") == False
- assert ci.is_issnl("1-2345678") == False
+ assert ci.is_issnl("1234-5678") is True
+ assert ci.is_issnl("1234-5678.") is False
+ assert ci.is_issnl("12345678") is False
+ assert ci.is_issnl("1-2345678") is False
oi = OrcidImporter(api)
- assert oi.is_orcid("0000-0003-3118-6591") == True
- assert oi.is_orcid("0000-0003-3953-765X") == True
- assert oi.is_orcid("0000-00x3-3118-659") == False
- assert oi.is_orcid("0000-00033118-659") == False
- assert oi.is_orcid("0000-0003-3118-659.") == False
+ assert oi.is_orcid("0000-0003-3118-6591") is True
+ assert oi.is_orcid("0000-0003-3953-765X") is True
+ assert oi.is_orcid("0000-00x3-3118-659") is False
+ assert oi.is_orcid("0000-00033118-659") is False
+ assert oi.is_orcid("0000-0003-3118-659.") is False