Example #1
0
 def testSelectAll(self):
     d = date.today()
     self.addThree(d)
     count = 0
     for row in Citation.selectAll([1, 2]):
         self.assertEqual('Journal {}'.format(row['pmid']), row['journal'])
         self.assertEqual(d, row['created'])
         self.assertEqual('MEDLINE', row[1])
         count += 1
     self.assertEqual(2, count)
Example #2
0
 def testSelectAll(self):
     d = date.today()
     self.addThree(d)
     count = 0
     for row in Citation.selectAll([1, 2]):
         self.assertEqual('Journal {}'.format(row['pmid']), row['journal'])
         self.assertEqual(d, row['created'])
         self.assertEqual('MEDLINE', row[1])
         count += 1
     self.assertEqual(2, count)