comparison test/test_db.py @ 974:84216d63ed9c

ahhh, I understand now
author Richard Jones <richard@users.sourceforge.net>
date Fri, 23 Aug 2002 04:58:00 +0000
parents e21259073500
children 8c2036dace08
comparison
equal deleted inserted replaced
973:e21259073500 974:84216d63ed9c
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 # $Id: test_db.py,v 1.40 2002-08-23 04:48:36 richard Exp $ 18 # $Id: test_db.py,v 1.41 2002-08-23 04:58:00 richard Exp $
19 19
20 import unittest, os, shutil, time 20 import unittest, os, shutil, time
21 21
22 from roundup.hyperdb import String, Password, Link, Multilink, Date, \ 22 from roundup.hyperdb import String, Password, Link, Multilink, Date, \
23 Interval, DatabaseError, Boolean, Number 23 Interval, DatabaseError, Boolean, Number
411 411
412 # pack 412 # pack
413 self.db.pack(pack_before) 413 self.db.pack(pack_before)
414 journal = self.db.getjournal('issue', '1') 414 journal = self.db.getjournal('issue', '1')
415 415
416 # we should have one entry now 416 # we should have the create and last set entries now
417 self.assertEqual(1, len(journal)) 417 self.assertEqual(2, len(journal))
418 418
419 def testIDGeneration(self): 419 def testIDGeneration(self):
420 id1 = self.db.issue.create(title="spam", status='1') 420 id1 = self.db.issue.create(title="spam", status='1')
421 id2 = self.db2.issue.create(title="eggs", status='2') 421 id2 = self.db2.issue.create(title="eggs", status='2')
422 self.assertNotEqual(id1, id2) 422 self.assertNotEqual(id1, id2)
666 666
667 return unittest.TestSuite(l) 667 return unittest.TestSuite(l)
668 668
669 # 669 #
670 # $Log: not supported by cvs2svn $ 670 # $Log: not supported by cvs2svn $
671 # Revision 1.40 2002/08/23 04:48:36 richard
672 # oops, forgot
673 #
671 # Revision 1.39 2002/07/31 23:57:37 richard 674 # Revision 1.39 2002/07/31 23:57:37 richard
672 # . web forms may now unset Link values (like assignedto) 675 # . web forms may now unset Link values (like assignedto)
673 # 676 #
674 # Revision 1.38 2002/07/26 08:27:00 richard 677 # Revision 1.38 2002/07/26 08:27:00 richard
675 # Very close now. The cgi and mailgw now use the new security API. The two 678 # Very close now. The cgi and mailgw now use the new security API. The two

Roundup Issue Tracker: http://roundup-tracker.org/