Пример #1
0
 def test_get_incomings(self):
     '''COMMENT'''
     rel = Relation('has_functional_parent', '15866', 'C')
     self.assertIn(rel, parsers.get_incomings(4167))
Пример #2
0
 def test_get_outgoings(self):
     '''COMMENT'''
     rel = Relation('is_a', 'CHEBI:17634', 'C')
     self.assertIn(rel, parsers.get_outgoings(4167))
Пример #3
0
 def test_get_in_secondary(self):
     '''COMMENT'''
     this_relation = Relation('is_conjugate_acid_of', '29412', 'C')
     self.assertTrue(this_relation in self.__secondary.get_incomings())
Пример #4
0
 def test_get_in_existing(self):
     '''COMMENT'''
     this_relation = Relation('has_functional_parent', 'CHEBI:15866', 'C')
     self.assertTrue(this_relation in self.__existing.get_incomings())
Пример #5
0
 def test_get_out_secondary(self):
     '''COMMENT'''
     this_relation = Relation('has_role', 'CHEBI:48360', 'C')
     self.assertTrue(this_relation in self.__secondary.get_outgoings())
Пример #6
0
 def test_get_out_existing(self):
     '''COMMENT'''
     this_relation = Relation('is_a', '17634', 'C')
     self.assertTrue(this_relation in self.__existing.get_outgoings())