-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -852,10 +852,14 @@ def test_multiple_contacts(self): | |
dct:description "This is a dataset" ; | ||
dcat:contactPoint [ a vcard:Kind ; | ||
vcard:fn "Test Contact 1" ; | ||
vcard:hasEmail <mailto:[email protected]> ], | ||
vcard:hasEmail <mailto:[email protected]> ; | ||
vcard:hasUID "https://orcid.org/0000-0002-9095-9201" | ||
], | ||
[ a vcard:Kind ; | ||
vcard:fn "Test Contact 2" ; | ||
vcard:hasEmail <mailto:[email protected]> ] ; | ||
vcard:hasEmail <mailto:[email protected]> ; | ||
vcard:hasUID "https://orcid.org/0000-0002-9095-9202" | ||
] ; | ||
. | ||
""" | ||
|
||
|
@@ -868,8 +872,16 @@ def test_multiple_contacts(self): | |
assert len(dataset["contact"]) == 2 | ||
assert dataset["contact"][0]["name"] == "Test Contact 1" | ||
assert dataset["contact"][0]["email"] == "[email protected]" | ||
assert ( | ||
dataset["contact"][0]["identifier"] | ||
== "https://orcid.org/0000-0002-9095-9201" | ||
) | ||
assert dataset["contact"][1]["name"] == "Test Contact 2" | ||
assert dataset["contact"][1]["email"] == "[email protected]" | ||
assert ( | ||
dataset["contact"][1]["identifier"] | ||
== "https://orcid.org/0000-0002-9095-9202" | ||
) | ||
|
||
def test_multiple_publishers(self): | ||
|
||
|
@@ -889,10 +901,12 @@ def test_multiple_publishers(self): | |
dct:publisher [ a org:Organization ; | ||
skos:prefLabel "Test Publisher 1" ; | ||
vcard:hasEmail <mailto:[email protected]> ; | ||
dct:identifier "https://orcid.org/0000-0002-9095-9201" ; | ||
foaf:name "Test Publisher 1" ], | ||
[ a org:Organization ; | ||
skos:prefLabel "Test Publisher 2" ; | ||
vcard:hasEmail <mailto:[email protected]> ; | ||
dct:identifier "https://orcid.org/0000-0002-9095-9202" ; | ||
foaf:name "Test Publisher 2" ] ; | ||
. | ||
""" | ||
|
@@ -906,8 +920,16 @@ def test_multiple_publishers(self): | |
assert len(dataset["publisher"]) == 2 | ||
assert dataset["publisher"][0]["name"] == "Test Publisher 1" | ||
assert dataset["publisher"][0]["email"] == "[email protected]" | ||
assert ( | ||
dataset["publisher"][0]["identifier"] | ||
== "https://orcid.org/0000-0002-9095-9201" | ||
) | ||
assert dataset["publisher"][1]["name"] == "Test Publisher 2" | ||
assert dataset["publisher"][1]["email"] == "[email protected]" | ||
assert ( | ||
dataset["publisher"][1]["identifier"] | ||
== "https://orcid.org/0000-0002-9095-9202" | ||
) | ||
|
||
def test_multiple_creators(self): | ||
|
||
|