Mercurial > p > roundup > code
comparison test/db_test_base.py @ 2508:8e1c1623710b
rdbms backends not filtering correctly on link=None
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 29 Jun 2004 05:51:38 +0000 |
| parents | bdd112cf61ba |
| children | 091711fb2f8c |
comparison
equal
deleted
inserted
replaced
| 2507:932ffd8dd631 | 2508:8e1c1623710b |
|---|---|
| 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.35 2004-06-28 23:13:06 richard Exp $ | 18 # $Id: db_test_base.py,v 1.36 2004-06-29 05:51:38 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 |
| 874 | 874 |
| 875 def testFilteringLink(self): | 875 def testFilteringLink(self): |
| 876 ae, filt = self.filteringSetup() | 876 ae, filt = self.filteringSetup() |
| 877 ae(filt(None, {'status': '1'}, ('+','id'), (None,None)), ['2','3']) | 877 ae(filt(None, {'status': '1'}, ('+','id'), (None,None)), ['2','3']) |
| 878 ae(filt(None, {'assignedto': '-1'}, ('+','id'), (None,None)), ['3','4']) | 878 ae(filt(None, {'assignedto': '-1'}, ('+','id'), (None,None)), ['3','4']) |
| 879 ae(filt(None, {'assignedto': None}, ('+','id'), (None,None)), ['3','4']) | |
| 880 ae(filt(None, {'assignedto': ['-1', None]}, ('+','id'), (None,None)), | |
| 881 ['3','4']) | |
| 879 | 882 |
| 880 def testFilteringRetired(self): | 883 def testFilteringRetired(self): |
| 881 ae, filt = self.filteringSetup() | 884 ae, filt = self.filteringSetup() |
| 882 self.db.issue.retire('2') | 885 self.db.issue.retire('2') |
| 883 ae(filt(None, {'status': '1'}, ('+','id'), (None,None)), ['3']) | 886 ae(filt(None, {'status': '1'}, ('+','id'), (None,None)), ['3']) |
