comparison test/db_test_base.py @ 2968:0aaf356fd105

merge from maint-0-7
author Richard Jones <richard@users.sourceforge.net>
date Fri, 26 Nov 2004 00:01:04 +0000
parents a8808157f892
children 224c7c0b9708 2739e3150e40
comparison
equal deleted inserted replaced
2966:2ddba486546a 2968:0aaf356fd105
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.54 2004-11-12 04:07:05 richard Exp $ 18 # $Id: db_test_base.py,v 1.55 2004-11-26 00:01:04 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
802 got.sort() 802 got.sort()
803 self.assertEqual(got, [one, three]) 803 self.assertEqual(got, [one, three])
804 804
805 def testFindMultipleLink(self): 805 def testFindMultipleLink(self):
806 one, two, three, four = self._find_test_setup() 806 one, two, three, four = self._find_test_setup()
807 self.assertEqual(self.db.issue.find(status={'1':1, '3':1}), 807 l = self.db.issue.find(status={'1':1, '3':1})
808 [one, three, four]) 808 l.sort()
809 self.assertEqual(self.db.issue.find(assignedto={None:1, '1':1}), 809 self.assertEqual(l, [one, three, four])
810 [one, three, four]) 810 l = self.db.issue.find(assignedto={None:1, '1':1})
811 l.sort()
812 self.assertEqual(l, [one, three, four])
811 813
812 def testFindMultilink(self): 814 def testFindMultilink(self):
813 one, two, three, four = self._find_test_setup() 815 one, two, three, four = self._find_test_setup()
814 got = self.db.issue.find(nosy='2') 816 got = self.db.issue.find(nosy='2')
815 got.sort() 817 got.sort()

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