예제 #1
0
 def test_get_comments_secondary(self):
     '''COMMENT'''
     this_chebi_entity = ChebiEntity('11505')
     this_comment = Comment(
         '29044', 'General', 'The substituent name \'3-oxoprop-2-enyl\' is '
         'incorrect but is used in various databases.',
         datetime.datetime.strptime('2005-03-18', '%Y-%M-%d'))
     self.assertTrue(this_comment in this_chebi_entity.get_comments())
예제 #2
0
 def test_get_comments(self):
     '''COMMENT'''
     self.assertIn(
         Comment('DatabaseAccession', 'DatabaseAccession', 'Z stereomer',
                 datetime.datetime.strptime('2006-09-01', '%Y-%M-%d')),
         parsers.get_comments(5407))