From: richard Date: Wed, 15 May 2002 06:37:31 +0000 (+0000) Subject: ehem and the unit test X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1c538514ec065f86d1a6b20bb1e57f9232edd2a3;p=roundup.git ehem and the unit test git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@735 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/test/test_htmltemplate.py b/test/test_htmltemplate.py index f216db7..640de29 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.13 2002-04-03 05:54:31 richard Exp $ +# $Id: test_htmltemplate.py,v 1.14 2002-05-15 06:37:31 richard Exp $ import unittest, cgi, time @@ -269,8 +269,9 @@ class NodeCase(unittest.TestCase): def testReldate_date(self): self.assertEqual(self.tf.do_reldate('reldate'), '- 2y 1m') - date = self.tf.cl.get('1', 'reldate') - self.assertEqual(self.tf.do_reldate('reldate', pretty=1), date.pretty()) + interval = date.Interval('- 2y 1m') + self.assertEqual(self.tf.do_reldate('reldate', pretty=1), + interval.pretty()) # def do_download(self, property): def testDownload_novalue(self): @@ -352,6 +353,14 @@ def suite(): # # $Log: not supported by cvs2svn $ +# 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. +# +# Also fixed htmltemplate after the showid changes I made yesterday. +# +# Unit tests for all of the above written. +# # Revision 1.12 2002/03/29 19:41:48 rochecompaan # . Fixed display of mutlilink properties when using the template # functions, menu and plain.