From: richard Date: Mon, 8 Jul 2002 06:39:00 +0000 (+0000) Subject: Fixed unit test support class so the tests ran again. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e28639dc38df40a6434716289cbe1962aa112ff6;p=roundup.git Fixed unit test support class so the tests ran again. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@828 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/test/test_htmltemplate.py b/test/test_htmltemplate.py index 640de29..4082be2 100644 --- a/test/test_htmltemplate.py +++ b/test/test_htmltemplate.py @@ -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 @@ class Class: 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 @@ def suite(): # # $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.