@@ -0,0 +1,2742 @@
+import unittest%0Afrom biothings_explorer.registry import Registry%0Afrom biothings_explorer.user_query_dispatcher import SingleEdgeQueryDispatcher%0Afrom .utils import get_apis%0A%0Aclass TestSingleHopQuery(unittest.TestCase):%0A%0A    def test_gene2phenotype(self):%0A        # test %3Cgene, enableMF, mf%3E%0A        seqd = SingleEdgeQueryDispatcher(input_cls='Gene',%0A                                         input_id='MGI',%0A                                         output_cls='PhenotypicFeature',%0A                                         output_id='MP',%0A                                         pred='related_to',%0A                                         values='MGI:3588207')%0A        seqd.query()%0A        self.assertTrue('MP:0000598' in seqd.G)%0A        edges = seqd.G%5B'MGI:MGI:3588207'%5D%5B'MP:0000598'%5D%0A        self.assertTrue('MGIgene2phenotype API' in get_apis(edges))%0A%0A    def test_gene2disease(self):%0A        # test %3Cgene, enableMF, mf%3E%0A        seqd = SingleEdgeQueryDispatcher(output_cls='Disease',%0A                                         output_id='DOID',%0A                                         input_cls='Gene',%0A                                         input_id='MGI',%0A                                         pred='related_to',%0A                                         values='MGI:3588207')%0A        seqd.query()%0A        self.assertTrue('DOID:0050545' in seqd.G)%0A        edges = seqd.G%5B'MGI:MGI:3588207'%5D%5B'DOID:0050545'%5D%0A        self.assertTrue('MGIgene2phenotype API' in get_apis(edges))%0A%0A    def test_disease2gene(self):%0A        # test %3Cgene, enableMF, mf%3E%0A        seqd = SingleEdgeQueryDispatcher(input_cls='Disease',%0A                                         input_id='DOID',%0A                                         output_cls='Gene',%0A                                         output_id='MGI',%0A                                         pred='related_to',%0A                                         values='DOID:0050545')%0A        seqd.query()%0A        self.assertTrue('MGI:3588207' in seqd.G)%0A        edges = seqd.G%5B'DOID:DOID:0050545'%5D%5B'MGI:3588207'%5D%0A        self.assertTrue('MGIgene2phenotype API' in get_apis(edges))%0A%0A    def test_phenotype2gene(self):%0A        # test %3Cgene, enableMF, mf%3E%0A        seqd = SingleEdgeQueryDispatcher(input_cls='PhenotypicFeature',%0A                                         input_id='MP',%0A                                         output_cls='Gene',%0A                                         output_id='MGI',%0A                                         pred='related_to',%0A                                         values='MP:0000598')%0A        seqd.query()%0A        self.assertTrue('MGI:3588207' in seqd.G)%0A        edges = seqd.G%5B'MP:MP:0000598'%5D%5B'MGI:3588207'%5D%0A        self.assertTrue('MGIgene2phenotype API' in get_apis(edges))%0A

add tests for gene2phenotype api