Mercurial > p > roundup > code
diff test/db_test_base.py @ 3953:78dc9b275aeb
New tests for range searching by specifying just a month.
Currently some of them fail.
_add_granularity is broken - needs tests and complete fix.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 21 Dec 2007 11:21:09 +0000 |
| parents | c68581212cf7 |
| children | de6326aee6d0 |
line wrap: on
line diff
--- a/test/db_test_base.py Thu Dec 20 01:01:49 2007 +0000 +++ b/test/db_test_base.py Fri Dec 21 11:21:09 2007 +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.93 2007-12-20 01:01:49 richard Exp $ +# $Id: db_test_base.py,v 1.94 2007-12-21 11:21:08 richard Exp $ import unittest, os, shutil, errno, imp, sys, time, pprint, sets, base64, os.path @@ -1184,6 +1184,7 @@ ae(filt(None, {'deadline': '2003-02-16;'}), ['1', '3', '4']) def testFilteringRangeYearMonthDay(self): + ae, filt = self.filteringSetup() ae(filt(None, {'deadline': '2002'}), []) ae(filt(None, {'deadline': '2003'}), ['1', '2', '3']) ae(filt(None, {'deadline': '2004'}), ['4'])
