Mercurial > p > roundup > code
comparison test/test_db.py @ 1361:b94cc62090be
reminder comments for where we need new tests
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 12 Jan 2003 00:43:43 +0000 |
| parents | 80d27b7d6db5 |
| children | 4884fb0860f9 |
comparison
equal
deleted
inserted
replaced
| 1360:aa7e4e8b14be | 1361:b94cc62090be |
|---|---|
| 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.63 2002-12-12 09:31:04 richard Exp $ | 18 # $Id: test_db.py,v 1.64 2003-01-12 00:43:43 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 | 23 Interval, DatabaseError, Boolean, Number |
| 587 def testFilteringMany(self): | 587 def testFilteringMany(self): |
| 588 ae, filt = self.filteringSetup() | 588 ae, filt = self.filteringSetup() |
| 589 ae(filt(None, {'nosy': '2', 'status': '1'}, ('+','id'), (None,None)), | 589 ae(filt(None, {'nosy': '2', 'status': '1'}, ('+','id'), (None,None)), |
| 590 ['3']) | 590 ['3']) |
| 591 | 591 |
| 592 # TODO test auditors and reactors | |
| 593 | |
| 592 class anydbmReadOnlyDBTestCase(MyTestCase): | 594 class anydbmReadOnlyDBTestCase(MyTestCase): |
| 593 def setUp(self): | 595 def setUp(self): |
| 594 from roundup.backends import anydbm | 596 from roundup.backends import anydbm |
| 595 # remove previous test, ignore errors | 597 # remove previous test, ignore errors |
| 596 if os.path.exists(config.DATABASE): | 598 if os.path.exists(config.DATABASE): |
