Mercurial > p > roundup > code
changeset 814:9a17342a9e04
Fixed unit test support class so the tests ran again.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 08 Jul 2002 06:39:00 +0000 |
| parents | b086b090b9a9 |
| children | f4ead46205ac |
| files | test/test_htmltemplate.py |
| diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/test/test_htmltemplate.py Mon Jul 08 04:44:22 2002 +0000 +++ b/test/test_htmltemplate.py Mon Jul 08 06:39:00 2002 +0000 @@ -8,7 +8,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # -# $Id: test_htmltemplate.py,v 1.14 2002-05-15 06:37:31 richard Exp $ +# $Id: test_htmltemplate.py,v 1.15 2002-07-08 06:39:00 richard Exp $ import unittest, cgi, time @@ -43,13 +43,15 @@ return 'hello\nworld' def list(self): return ['1', '2'] + def filter(self, search_matches, filterspec, sort, group): + return ['1', '2'] def getprops(self): return {'string': String(), 'date': Date(), 'interval': Interval(), 'link': Link('other'), 'multilink': Multilink('other'), 'password': Password(), 'html': String(), 'key': String(), 'novalue': String(), 'filename': String(), 'multiline': String(), 'reldate': Date()} - def labelprop(self): + def labelprop(self, default_to_id=0): return 'key' class Database: @@ -353,6 +355,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.14 2002/05/15 06:37:31 richard +# ehem and the unit test +# # Revision 1.13 2002/04/03 05:54:31 richard # Fixed serialisation problem by moving the serialisation step out of the # hyperdb.Class (get, set) into the hyperdb.Database.
