Skip to content

Commit

Permalink
Merge 6cedd7b into d868821
Browse files Browse the repository at this point in the history
  • Loading branch information
apeters committed Jul 10, 2020
2 parents d868821 + 6cedd7b commit 07dda2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/importer/datatype_from_rdf_tests.py
Expand Up @@ -108,13 +108,13 @@ def test_jsonld_resource_http_port(self):
"@type": "http://www.cidoc-crm.org/cidoc-crm/E21_Person",
}
resp = dt.from_rdf(jf)
self.assertTrue(resp["resourceId"] == "037daf4d-054a-44d2-9c0a-108b59e39109")
self.assertTrue(resp[0]["resourceId"] == "037daf4d-054a-44d2-9c0a-108b59e39109")

def test_jsonld_resource_urn_uuid(self):
dt = self.DT.get_instance("resource-instance")
jf = {"@id": "urn:uuid:eccaa586-284b-4f98-b4db-bdf8bdc9efcb", "@type": "http://www.cidoc-crm.org/cidoc-crm/E21_Person"}
resp = dt.from_rdf(jf)
self.assertTrue(resp["resourceId"] == "eccaa586-284b-4f98-b4db-bdf8bdc9efcb")
self.assertTrue(resp[0]["resourceId"] == "eccaa586-284b-4f98-b4db-bdf8bdc9efcb")

def test_jsonld_resource_not_a_uuid(self):
dt = self.DT.get_instance("resource-instance")
Expand Down

0 comments on commit 07dda2f

Please sign in to comment.