Mercurial > p > roundup > code
comparison test/db_test_base.py @ 2509:ea887c804103 maint-0.7
merge from HEAD
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 29 Jun 2004 05:53:37 +0000 |
| parents | 4d112730e02f |
| children | 5455dd2ec6d7 |
comparison
equal
deleted
inserted
replaced
| 2506:f89a84f881f0 | 2509:ea887c804103 |
|---|---|
| 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.7 2004-06-24 07:14:49 richard Exp $ | 18 # $Id: db_test_base.py,v 1.27.2.8 2004-06-29 05:53:37 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 |
| 875 | 875 |
| 876 def testFilteringLink(self): | 876 def testFilteringLink(self): |
| 877 ae, filt = self.filteringSetup() | 877 ae, filt = self.filteringSetup() |
| 878 ae(filt(None, {'status': '1'}, ('+','id'), (None,None)), ['2','3']) | 878 ae(filt(None, {'status': '1'}, ('+','id'), (None,None)), ['2','3']) |
| 879 ae(filt(None, {'assignedto': '-1'}, ('+','id'), (None,None)), ['3','4']) | 879 ae(filt(None, {'assignedto': '-1'}, ('+','id'), (None,None)), ['3','4']) |
| 880 ae(filt(None, {'assignedto': None}, ('+','id'), (None,None)), ['3','4']) | |
| 881 ae(filt(None, {'assignedto': ['-1', None]}, ('+','id'), (None,None)), | |
| 882 ['3','4']) | |
| 880 | 883 |
| 881 def testFilteringRetired(self): | 884 def testFilteringRetired(self): |
| 882 ae, filt = self.filteringSetup() | 885 ae, filt = self.filteringSetup() |
| 883 self.db.issue.retire('2') | 886 self.db.issue.retire('2') |
| 884 ae(filt(None, {'status': '1'}, ('+','id'), (None,None)), ['3']) | 887 ae(filt(None, {'status': '1'}, ('+','id'), (None,None)), ['3']) |
