1515# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717#
18- # $Id: db_test_base.py,v 1.27.2.8 2004-06-29 05:53:37 richard Exp $
18+ # $Id: db_test_base.py,v 1.27.2.9 2004-07-03 23:08:44 richard Exp $
1919
2020import unittest , os , shutil , errno , imp , sys , time , pprint
2121
@@ -835,15 +835,15 @@ def filteringSetup(self):
835835 iss = self .db .issue
836836 for issue in (
837837 {'title' : 'issue one' , 'status' : '2' , 'assignedto' : '1' ,
838- 'foo' : date .Interval ('1:10' ), 'priority' : '1 ' ,
838+ 'foo' : date .Interval ('1:10' ), 'priority' : '3 ' ,
839839 'deadline' : date .Date ('2003-01-01.00:00' )},
840840 {'title' : 'issue two' , 'status' : '1' , 'assignedto' : '2' ,
841841 'foo' : date .Interval ('1d' ), 'priority' : '3' ,
842842 'deadline' : date .Date ('2003-02-16.22:50' )},
843843 {'title' : 'issue three' , 'status' : '1' , 'priority' : '2' ,
844844 'nosy' : ['1' ,'2' ], 'deadline' : date .Date ('2003-02-18' )},
845845 {'title' : 'non four' , 'status' : '3' ,
846- 'foo' : date .Interval ('0:10' ), 'priority' : '1 ' ,
846+ 'foo' : date .Interval ('0:10' ), 'priority' : '2 ' ,
847847 'nosy' : ['1' ], 'deadline' : date .Date ('2004-03-08' )}):
848848 self .db .issue .create (** issue )
849849 file_content = '' .join ([chr (i ) for i in range (255 )])
@@ -880,6 +880,8 @@ def testFilteringLink(self):
880880 ae (filt (None , {'assignedto' : None }, ('+' ,'id' ), (None ,None )), ['3' ,'4' ])
881881 ae (filt (None , {'assignedto' : ['-1' , None ]}, ('+' ,'id' ), (None ,None )),
882882 ['3' ,'4' ])
883+ ae (filt (None , {'assignedto' : ['1' , None ]}, ('+' ,'id' ), (None ,None )),
884+ ['1' , '3' ,'4' ])
883885
884886 def testFilteringRetired (self ):
885887 ae , filt = self .filteringSetup ()
@@ -890,6 +892,8 @@ def testFilteringMultilink(self):
890892 ae , filt = self .filteringSetup ()
891893 ae (filt (None , {'nosy' : '2' }, ('+' ,'id' ), (None ,None )), ['3' ])
892894 ae (filt (None , {'nosy' : '-1' }, ('+' ,'id' ), (None ,None )), ['1' , '2' ])
895+ ae (filt (None , {'nosy' : ['1' ,'2' ]}, ('+' , 'status' ),
896+ ('-' , 'activity' )), ['4' , '3' ])
893897
894898 def testFilteringMany (self ):
895899 ae , filt = self .filteringSetup ()
0 commit comments