comparison test/test_db.py @ 1740:5ca448ff8052

don't have RDBMS backends list retired nodes [SF#767319]
author Richard Jones <richard@users.sourceforge.net>
date Tue, 12 Aug 2003 02:22:22 +0000
parents 8a908bbad1ef
children d2801a2b0a77 c4968040459e
comparison
equal deleted inserted replaced
1739:c3f0b552a55a 1740:5ca448ff8052
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.89 2003-05-09 01:47:51 richard Exp $ 18 # $Id: test_db.py,v 1.90 2003-08-12 02:22:22 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, Node 23 Interval, DatabaseError, Boolean, Number, Node
682 682
683 def testFilteringLink(self): 683 def testFilteringLink(self):
684 ae, filt = self.filteringSetup() 684 ae, filt = self.filteringSetup()
685 ae(filt(None, {'status': '1'}, ('+','id'), (None,None)), ['2','3']) 685 ae(filt(None, {'status': '1'}, ('+','id'), (None,None)), ['2','3'])
686 686
687 def testFilteringRetired(self):
688 ae, filt = self.filteringSetup()
689 self.db.issue.retire('2')
690 ae(filt(None, {'status': '1'}, ('+','id'), (None,None)), ['3'])
691
687 def testFilteringMultilink(self): 692 def testFilteringMultilink(self):
688 ae, filt = self.filteringSetup() 693 ae, filt = self.filteringSetup()
689 ae(filt(None, {'nosy': '2'}, ('+','id'), (None,None)), ['3']) 694 ae(filt(None, {'nosy': '2'}, ('+','id'), (None,None)), ['3'])
690 ae(filt(None, {'nosy': '-1'}, ('+','id'), (None,None)), ['1', '2']) 695 ae(filt(None, {'nosy': '-1'}, ('+','id'), (None,None)), ['1', '2'])
691 696

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