Exemplo n.º 1
0
 def test_get_names_secondary(self):
     '''COMMENT'''
     this_name = Name('eau', 'SYNONYM', 'ChEBI', False, 'fr')
     self.assertTrue(this_name in self.__secondary.get_names())
Exemplo n.º 2
0
 def test_get_names(self):
     '''COMMENT'''
     nme = Name('2-(p-Chloro-o-tolyloxy)propionic acid', 'SYNONYM',
                'ChemIDplus', False, 'en')
     self.assertIn(nme, parsers.get_names(75711))
Exemplo n.º 3
0
 def test_get_names_existing(self):
     '''COMMENT'''
     this_name = Name('Grape sugar', 'SYNONYM', 'KEGG COMPOUND', False,
                      'en')
     self.assertTrue(this_name in self.__existing.get_names())