def test_omim(self): self.assertEqual( oxo.uri_to_oxo_format( "http://purl.obolibrary.org/obo/OMIM_314580"), "OMIM:314580") self.assertEqual( oxo.uri_to_oxo_format("http://identifiers.org/omim/314580"), "OMIM:314580")
def test_mesh(self): self.assertEqual( oxo.uri_to_oxo_format( "http://purl.obolibrary.org/obo/MESH_D002277"), "MeSH:D002277") self.assertEqual( oxo.uri_to_oxo_format("http://identifiers.org/mesh/D002277"), "MeSH:D002277")
def test_ordo(self): self.assertEqual( oxo.uri_to_oxo_format("http://www.orpha.net/ORDO/Orphanet_140162"), "Orphanet:140162")
def test_nonexistent(self): self.assertEqual(oxo.uri_to_oxo_format("not_a_real_uri"), None)
def test_hp(self): self.assertEqual( oxo.uri_to_oxo_format("http://purl.obolibrary.org/obo/HP_0030731"), "HP:0030731")
def test_efo(self): self.assertEqual( oxo.uri_to_oxo_format("http://www.ebi.ac.uk/efo/EFO_0000313"), "EFO:0000313")
def test_ordo(self): self.assertEqual(oxo.uri_to_oxo_format("http://www.orpha.net/ORDO/Orphanet_140162"), "Orphanet:140162")
def test_mondo(self): self.assertEqual(oxo.uri_to_oxo_format("http://purl.obolibrary.org/obo/MONDO_0019531"), "MONDO:0019531")
def test_nonexistent(self): self.assertEqual(oxo.uri_to_oxo_format("not_a_real_uri"), None)
def test_hp(self): self.assertEqual(oxo.uri_to_oxo_format("http://purl.obolibrary.org/obo/HP_0030731"), "HP:0030731")
def test_mesh(self): self.assertEqual(oxo.uri_to_oxo_format("http://purl.obolibrary.org/obo/MESH_D002277"), "MeSH:D002277") self.assertEqual(oxo.uri_to_oxo_format("http://identifiers.org/mesh/D002277"), "MeSH:D002277")
def test_efo(self): self.assertEqual(oxo.uri_to_oxo_format("http://www.ebi.ac.uk/efo/EFO_0000313"), "EFO:0000313")
def test_omim(self): self.assertEqual(oxo.uri_to_oxo_format("http://purl.obolibrary.org/obo/OMIM_314580"), "OMIM:314580") self.assertEqual(oxo.uri_to_oxo_format("http://identifiers.org/omim/314580"), "OMIM:314580")
def test_mondo(self): self.assertEqual( oxo.uri_to_oxo_format( "http://purl.obolibrary.org/obo/MONDO_0019531"), "MONDO:0019531")