comparison test/db_test_base.py @ 2075:b1704ba7be41

make mysql / postgresql work again. beginnings of otk/session store in rdbmses
author Richard Jones <richard@users.sourceforge.net>
date Fri, 12 Mar 2004 04:09:00 +0000
parents 5660b89f8903
children 3e0961d6d44d
comparison
equal deleted inserted replaced
2073:261c2e6ceb1e 2075:b1704ba7be41
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.14 2004-01-20 05:55:51 richard Exp $ 18 # $Id: db_test_base.py,v 1.15 2004-03-12 04:09:00 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
745 return self.assertEqual, self.db.issue.filter 745 return self.assertEqual, self.db.issue.filter
746 746
747 def testFilteringID(self): 747 def testFilteringID(self):
748 ae, filt = self.filteringSetup() 748 ae, filt = self.filteringSetup()
749 ae(filt(None, {'id': '1'}, ('+','id'), (None,None)), ['1']) 749 ae(filt(None, {'id': '1'}, ('+','id'), (None,None)), ['1'])
750 ae(filt(None, {'id': '2'}, ('+','id'), (None,None)), ['2'])
751 ae(filt(None, {'id': '10'}, ('+','id'), (None,None)), [])
750 752
751 def testFilteringString(self): 753 def testFilteringString(self):
752 ae, filt = self.filteringSetup() 754 ae, filt = self.filteringSetup()
753 ae(filt(None, {'title': ['one']}, ('+','id'), (None,None)), ['1']) 755 ae(filt(None, {'title': ['one']}, ('+','id'), (None,None)), ['1'])
754 ae(filt(None, {'title': ['issue']}, ('+','id'), (None,None)), 756 ae(filt(None, {'title': ['issue']}, ('+','id'), (None,None)),

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