Пример #1
0
 def test_get_outgoings_empty_size(self):
     '''COMMENT'''
     self.assertTrue(len(parsers.get_outgoings(1)) == 0)
Пример #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_outgoings_size(self):
     '''COMMENT'''
     self.assertTrue(len(parsers.get_outgoings(4167)) > 2)
Пример #4
0
 def test_get_outgoings(self):
     '''COMMENT'''
     rel = Relation('is_a', 'CHEBI:17634', 'C')
     self.assertIn(rel, parsers.get_outgoings(4167))
Пример #5
0
 def test_get_outgoings_empty_size(self):
     '''COMMENT'''
     self.assertTrue(0 == len(parsers.get_outgoings(1)))
Пример #6
0
 def test_get_outgoings_size(self):
     '''COMMENT'''
     self.assertTrue(2 < len(parsers.get_outgoings(4167)))
Пример #7
0
 def test_get_outgoings_neg_size(self):
     '''COMMENT'''
     self.assertTrue(len(parsers.get_outgoings(-1)) == 0)