コード例 #1
0
ファイル: test_gsesame.py プロジェクト: pypingou/pygolib
 def test_scores_article(self):
     """ Test the scores function. """
     obio = OboIO()
     terms = obio.get_graph(GOFILE)
     gsgo = GsesameGO(terms)
     output = 0.7727272727272726
     self.assertEqual(output, gsgo.scores('0043229','0043231'))
コード例 #2
0
ファイル: test_gsesame.py プロジェクト: pypingou/pygolib
 def test_scores(self):
     """ Test the scores function. """
     obio = OboIO()
     terms = obio.get_graph(GOFILE2)
     gsgo = GsesameGO(terms)
     output = 0.8259052924791086
     self.assertEqual(output, gsgo.scores('0043229','0043231'))