コード例 #1
0
 def test_list_all_endpoints(self):
     metadata = biothings_explorer_test.MetaData()
     self.assertIn("http://MyChem.info/v1/drug/{drugid}",
                   metadata.list_all_endpoints())
     self.assertIn(
         "https://pharos.nih.gov/idg/api/v1/diseases({diseaseid})",
         metadata.list_all_endpoints())
コード例 #2
0
 def test_list_all_api_resources(self):
     metadata = biothings_explorer_test.MetaData()
     self.assertIn('MyGene.info API', metadata.list_all_api_resources())
     self.assertIn('Pharos API', metadata.list_all_api_resources())
コード例 #3
0
 def test_list_all_predicates(self):
     metadata = biothings_explorer_test.MetaData()
     self.assertIn("DiseaseOntologyToParentDiseaseOntologyAssociation",
                   metadata.list_all_predicates())
     self.assertIn("EquivalentAssociation", metadata.list_all_predicates())
コード例 #4
0
 def test_list_all_semantic_types(self):
     metadata = biothings_explorer_test.MetaData()
     self.assertIn("gene", metadata.list_all_semantic_types())
     self.assertIn("pathway", metadata.list_all_semantic_types())
コード例 #5
0
 def test_list_all_prefixes(self):
     metadata = biothings_explorer_test.MetaData()
     self.assertIn("gene", metadata.list_all_prefixes())
     self.assertIn("ncbigene", metadata.list_all_prefixes()['gene'])
     self.assertIn("uniprot",
                   metadata.list_all_prefixes(group_by_semantic_type=False))