diff test/test_db.py @ 1599:cc96bf971b33

extended date syntax to make range searches even more useful
author Andrey Lebedev <kedder@users.sourceforge.net>
date Tue, 22 Apr 2003 20:53:55 +0000
parents b3263567b8c6
children 8a908bbad1ef
line wrap: on
line diff
--- a/test/test_db.py	Mon Apr 21 22:38:48 2003 +0000
+++ b/test/test_db.py	Tue Apr 22 20:53:55 2003 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: test_db.py,v 1.87 2003-04-21 22:38:48 richard Exp $ 
+# $Id: test_db.py,v 1.88 2003-04-22 20:53:55 kedder Exp $ 
 
 import unittest, os, shutil, time
 
@@ -703,6 +703,7 @@
         ae(filt(None, {'deadline': 'from 2003-02-16'}), ['2', '3', '4'])
         ae(filt(None, {'deadline': '2003-02-16;'}), ['2', '3', '4'])
         # year and month granularity
+        ae(filt(None, {'deadline': '2002'}), [])
         ae(filt(None, {'deadline': '2003'}), ['1', '2', '3'])
         ae(filt(None, {'deadline': '2004'}), ['4'])
         ae(filt(None, {'deadline': '2003-02'}), ['2', '3'])
@@ -713,7 +714,7 @@
         ae(filt(None, {'foo': 'from 0:50 to 2:00'}), ['1'])
         ae(filt(None, {'foo': 'from 0:50 to 1d 2:00'}), ['1', '2'])
         ae(filt(None, {'foo': 'from 5:50'}), ['2'])
-        ae(filt(None, {'foo': 'to 0:50'}), [])
+        ae(filt(None, {'foo': 'to 0:05'}), [])
 
     def testFilteringIntervalSort(self):
         ae, filt = self.filteringSetup()

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