comparison test/db_test_base.py @ 2967:7922e1244911 maint-0.7

py2.1?!? test fix
author Richard Jones <richard@users.sourceforge.net>
date Fri, 26 Nov 2004 00:00:32 +0000
parents 49d1fd44881a
children 94053f8666c6
comparison
equal deleted inserted replaced
2965:0e1860dcb328 2967:7922e1244911
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: db_test_base.py,v 1.27.2.12 2004-11-05 05:11:25 richard Exp $ 18 # $Id: db_test_base.py,v 1.27.2.13 2004-11-26 00:00:32 richard Exp $
19 19
20 import unittest, os, shutil, errno, imp, sys, time, pprint 20 import unittest, os, shutil, errno, imp, sys, time, pprint
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, Node 23 Interval, DatabaseError, Boolean, Number, Node
761 got.sort() 761 got.sort()
762 self.assertEqual(got, [one, three]) 762 self.assertEqual(got, [one, three])
763 763
764 def testFindMultipleLink(self): 764 def testFindMultipleLink(self):
765 one, two, three, four = self._find_test_setup() 765 one, two, three, four = self._find_test_setup()
766 self.assertEqual(self.db.issue.find(status={'1':1, '3':1}), 766 l = self.db.issue.find(status={'1':1, '3':1})
767 [one, three, four]) 767 l.sort()
768 self.assertEqual(self.db.issue.find(assignedto={None:1, '1':1}), 768 self.assertEqual(l, [one, three, four])
769 [one, three, four]) 769 l = self.db.issue.find(assignedto={None:1, '1':1})
770 l.sort()
771 self.assertEqual(l, [one, three, four])
770 772
771 def testFindMultilink(self): 773 def testFindMultilink(self):
772 one, two, three, four = self._find_test_setup() 774 one, two, three, four = self._find_test_setup()
773 got = self.db.issue.find(nosy='2') 775 got = self.db.issue.find(nosy='2')
774 got.sort() 776 got.sort()

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