|
8 | 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
9 | 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
10 | 10 | # |
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 $ |
12 | 12 |
|
13 | 13 | import unittest, cgi, time |
14 | 14 |
|
@@ -269,8 +269,9 @@ def testReldate_nondate(self): |
269 | 269 |
|
270 | 270 | def testReldate_date(self): |
271 | 271 | 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()) |
274 | 275 |
|
275 | 276 | # def do_download(self, property): |
276 | 277 | def testDownload_novalue(self): |
@@ -352,6 +353,14 @@ def suite(): |
352 | 353 |
|
353 | 354 | # |
354 | 355 | # $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 | +# |
355 | 364 | # Revision 1.12 2002/03/29 19:41:48 rochecompaan |
356 | 365 | # . Fixed display of mutlilink properties when using the template |
357 | 366 | # functions, menu and plain. |
|
0 commit comments