class BioGridTestCase(SourceTestCase): def setUp(self): self.source = BioGrid('rdf_graph', True) self.source.settestonly(True) self._setDirToSource() return def tearDown(self): self.source = None return def test_interactor_to_gene_curie(self): self.assertEqual( 'NCBIGene:3645446', self.source._interactor_to_gene_curie( 'entrez gene/locuslink:3645446')) self.assertEqual( 'BIOGRID:4383875', self.source._interactor_to_gene_curie('biogrid:4383875')) self.assertEqual( 'UniProtKB:P0DTD2', self.source._interactor_to_gene_curie('uniprot/swiss-prot:P0DTD2')) self.assertEqual(None, self.source._interactor_to_gene_curie('NOTAGENEID'))
class BioGridTestCase(SourceTestCase): def setUp(self): self.source = BioGrid('rdf_graph', True) self.source.settestonly(True) self._setDirToSource() return def tearDown(self): self.source = None return
class BioGridTestCase(SourceTestCase): def setUp(self): self.source = BioGrid() self.source.settestonly(True) self.source.test_ids = self._get_conf()['test_ids']['gene'] self._setDirToSource() return def tearDown(self): self.source = None return
class BioGridTestCase(SourceTestCase): def setUp(self): self.source = BioGrid('rdf_graph', True) self.source.settestonly(True) self.source.test_ids = self._get_conf()['test_ids']['gene'] self._setDirToSource() return def tearDown(self): self.source = None return