diff test/test_htmltemplate.py @ 722:431c3f9c8ac9

ehem and the unit test
author Richard Jones <richard@users.sourceforge.net>
date Wed, 15 May 2002 06:37:31 +0000
parents bc46480e2a2b
children 9a17342a9e04
line wrap: on
line diff
--- a/test/test_htmltemplate.py	Wed May 15 06:34:47 2002 +0000
+++ b/test/test_htmltemplate.py	Wed May 15 06:37:31 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.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 @@
 
     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 @@
 
 #
 # $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.

Roundup Issue Tracker: http://roundup-tracker.org/