@@ -0,0 +1,1490 @@
+import unittest%0Afrom biothings_explorer.registry import Registry%0Afrom biothings_explorer.user_query_dispatcher import SingleEdgeQueryDispatcher%0Afrom .utils import get_apis%0A%0Areg = Registry()%0A%0Aclass TestSingleHopQuery(unittest.TestCase):%0A%0A    def test_gene2disease(self):%0A        # test %3Cgene, related_to, disease%3E%0A        seqd = SingleEdgeQueryDispatcher(input_cls='Gene',%0A                                         input_id='NCBIGene',%0A                                         output_cls='Disease',%0A                                         pred='related_to',%0A                                         values='1017',%0A                                         registry=reg)%0A        seqd.query()%0A        self.assertTrue('D000077195' in seqd.G)%0A        edges = seqd.G%5B'NCBIGene:1017'%5D%5B'D000077195'%5D%0A        apis = get_apis(edges)%0A        self.assertTrue('CTD API' in apis)%0A%0A    def test_chemical2gene(self):%0A        # test %3Cgene, involvedInBP, bp%3E%0A        seqd = SingleEdgeQueryDispatcher(input_cls='ChemicalSubstance',%0A                                         input_id='MESH',%0A                                         output_cls='Gene',%0A                                         pred='related_to',%0A                                         values='D003634',%0A                                         registry=reg)%0A        seqd.query()%0A        self.assertTrue('ABCA1' in seqd.G)%0A        edges = seqd.G%5B'MESH:D003634'%5D%5B'ABCA1'%5D%0A        apis = get_apis(edges)%0A        self.assertTrue('CTD API' in apis)%0A

add test for ctd