Skip to content

Commit 81ebb17

Browse files
author
Richard Jones
committed
ehem and the unit test
1 parent c5eb2de commit 81ebb17

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

test/test_htmltemplate.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# but WITHOUT ANY WARRANTY; without even the implied warranty of
99
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1010
#
11-
# $Id: test_htmltemplate.py,v 1.13 2002-04-03 05:54:31 richard Exp $
11+
# $Id: test_htmltemplate.py,v 1.14 2002-05-15 06:37:31 richard Exp $
1212

1313
import unittest, cgi, time
1414

@@ -269,8 +269,9 @@ def testReldate_nondate(self):
269269

270270
def testReldate_date(self):
271271
self.assertEqual(self.tf.do_reldate('reldate'), '- 2y 1m')
272-
date = self.tf.cl.get('1', 'reldate')
273-
self.assertEqual(self.tf.do_reldate('reldate', pretty=1), date.pretty())
272+
interval = date.Interval('- 2y 1m')
273+
self.assertEqual(self.tf.do_reldate('reldate', pretty=1),
274+
interval.pretty())
274275

275276
# def do_download(self, property):
276277
def testDownload_novalue(self):
@@ -352,6 +353,14 @@ def suite():
352353

353354
#
354355
# $Log: not supported by cvs2svn $
356+
# Revision 1.13 2002/04/03 05:54:31 richard
357+
# Fixed serialisation problem by moving the serialisation step out of the
358+
# hyperdb.Class (get, set) into the hyperdb.Database.
359+
#
360+
# Also fixed htmltemplate after the showid changes I made yesterday.
361+
#
362+
# Unit tests for all of the above written.
363+
#
355364
# Revision 1.12 2002/03/29 19:41:48 rochecompaan
356365
# . Fixed display of mutlilink properties when using the template
357366
# functions, menu and plain.

0 commit comments

Comments
 (0)