Mercurial > p > roundup > code
changeset 2602:a32349bfcde4
fix unit test
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 20 Jul 2004 22:59:53 +0000 |
| parents | 113548baeed2 |
| children | 5ccd99777869 |
| files | test/db_test_base.py |
| diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/test/db_test_base.py Tue Jul 20 22:56:18 2004 +0000 +++ b/test/db_test_base.py Tue Jul 20 22:59:53 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.40 2004-07-20 22:56:18 richard Exp $ +# $Id: db_test_base.py,v 1.41 2004-07-20 22:59:53 richard Exp $ import unittest, os, shutil, errno, imp, sys, time, pprint @@ -965,14 +965,14 @@ ae, filt = self.filteringSetup() # ascending ae(filt(None, {}, ('+','deadline'), ('+','priority')), - ['2', '1', '4', '3']) + ['1', '2', '3', '4']) ae(filt(None, {}, ('-','deadline'), ('+','priority')), - ['2', '4', '1', '3']) + ['2', '1', '4', '3']) # descending ae(filt(None, {}, ('+','deadline'), ('-','priority')), - ['3', '1', '4', '2']) + ['3', '4', '1', '2']) ae(filt(None, {}, ('-','deadline'), ('-','priority')), - ['3', '4', '1', '2']) + ['4', '3', '2', '1']) # XXX add sorting tests for other types # XXX test auditors and reactors
