diff test/db_test_base.py @ 2494:ea7fb2f416db

fixed RDBMS Class.find() to handle None value in multiple find... ...and a merge from maint-0-7
author Richard Jones <richard@users.sourceforge.net>
date Wed, 23 Jun 2004 23:19:07 +0000
parents f41539b3c486
children 682eefe8ef23
line wrap: on
line diff
--- a/test/db_test_base.py	Tue Jun 22 23:39:08 2004 +0000
+++ b/test/db_test_base.py	Wed Jun 23 23:19:07 2004 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: db_test_base.py,v 1.32 2004-06-16 03:54:00 richard Exp $ 
+# $Id: db_test_base.py,v 1.33 2004-06-23 23:19:07 richard Exp $ 
 
 import unittest, os, shutil, errno, imp, sys, time, pprint
 
@@ -757,6 +757,13 @@
         got.sort()
         self.assertEqual(got, [one, three])
 
+    def testFindMultipleLink(self):
+        one, two, three, four = self._find_test_setup()
+        self.assertEqual(self.db.issue.find(status={'1':1, '3':1}),
+            [one, three, four])
+        self.assertEqual(self.db.issue.find(assignedto={None:1, '1':1}),
+            [one, three, four])
+
     def testFindMultilink(self):
         one, two, three, four = self._find_test_setup()
         got = self.db.issue.find(nosy='2')

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