Mercurial > p > roundup > code
comparison test/test_db.py @ 1555:948c7764d46c
implemented ability to search for multilink properties with no value (not in mk)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 26 Mar 2003 04:56:21 +0000 |
| parents | 3faabaeab6aa |
| children | e2a8ce4d2317 |
comparison
equal
deleted
inserted
replaced
| 1554:693b915041e6 | 1555:948c7764d46c |
|---|---|
| 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.81 2003-03-22 22:43:21 richard Exp $ | 18 # $Id: test_db.py,v 1.82 2003-03-26 04:56:21 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 |
| 670 ae(filt(None, {'status': '1'}, ('+','id'), (None,None)), ['2','3']) | 670 ae(filt(None, {'status': '1'}, ('+','id'), (None,None)), ['2','3']) |
| 671 | 671 |
| 672 def testFilteringMultilink(self): | 672 def testFilteringMultilink(self): |
| 673 ae, filt = self.filteringSetup() | 673 ae, filt = self.filteringSetup() |
| 674 ae(filt(None, {'nosy': '2'}, ('+','id'), (None,None)), ['3']) | 674 ae(filt(None, {'nosy': '2'}, ('+','id'), (None,None)), ['3']) |
| 675 ae(filt(None, {'nosy': '-1'}, ('+','id'), (None,None)), ['1', '2']) | |
| 675 | 676 |
| 676 def testFilteringMany(self): | 677 def testFilteringMany(self): |
| 677 ae, filt = self.filteringSetup() | 678 ae, filt = self.filteringSetup() |
| 678 ae(filt(None, {'nosy': '2', 'status': '1'}, ('+','id'), (None,None)), | 679 ae(filt(None, {'nosy': '2', 'status': '1'}, ('+','id'), (None,None)), |
| 679 ['3']) | 680 ['3']) |
