示例#1
0
 def testPmid2Doi(self):
     self.sess.add(Identifier(1, 'doi', 'id'))
     self.sess.add(Medline(2, 'MEDLINE', 'Journal', 'PubDate',
                           date.today()))
     self.sess.commit()
     self.assertEqual('id', Identifier.pmid2doi(1))
     self.assertEqual(None, Identifier.pmid2doi(2))
示例#2
0
 def testPmid2Doi(self):
     self.sess.add(Identifier(1, 'doi', 'id'))
     self.sess.add(Medline(2, 'MEDLINE', 'Journal', 'PubDate', date.today()))
     self.sess.commit()
     self.assertEqual('id', Identifier.pmid2doi(1))
     self.assertEqual(None, Identifier.pmid2doi(2))
示例#3
0
 def testPmid2Doi(self):
     self.sess.add(Identifier(1, 'doi', 'id'))
     self.sess.add(DefaultCitation(2))
     self.sess.commit()
     self.assertEqual('id', Identifier.pmid2doi(1))
     self.assertEqual(None, Identifier.pmid2doi(2))
示例#4
0
文件: orm_test.py 项目: henn/medic
 def testPmid2Doi(self):
     self.sess.add(Identifier(1, 'doi', 'id'))
     self.sess.add(DefaultCitation(2))
     self.sess.commit()
     self.assertEqual('id', Identifier.pmid2doi(1))
     self.assertEqual(None, Identifier.pmid2doi(2))