Mercurial > p > roundup > code
diff test/test_htmltemplate.py @ 676:bc46480e2a2b
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.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 03 Apr 2002 05:54:31 +0000 |
| parents | d92e06a3a56e |
| children | 431c3f9c8ac9 |
line wrap: on
line diff
--- a/test/test_htmltemplate.py Wed Apr 03 05:53:03 2002 +0000 +++ b/test/test_htmltemplate.py Wed Apr 03 05:54: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.12 2002-03-29 19:41:48 rochecompaan Exp $ +# $Id: test_htmltemplate.py,v 1.13 2002-04-03 05:54:31 richard Exp $ import unittest, cgi, time @@ -234,10 +234,18 @@ self.assertEqual(self.tf.do_link('link'), '<a href="other1">the key1</a>') + def testLink_link_id(self): + self.assertEqual(self.tf.do_link('link', showid=1), + '<a href="other1" title="the key1">1</a>') + def testLink_multilink(self): self.assertEqual(self.tf.do_link('multilink'), '<a href="other1">the key1</a>, <a href="other2">the key2</a>') + def testLink_multilink_id(self): + self.assertEqual(self.tf.do_link('multilink', showid=1), + '<a href="other1" title="the key1">1</a>, <a href="other2" title="the key2">2</a>') + # def do_count(self, property, **args): def testCount_nonlinks(self): s = _('[Count: not a Multilink]') @@ -344,6 +352,10 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.12 2002/03/29 19:41:48 rochecompaan +# . Fixed display of mutlilink properties when using the template +# functions, menu and plain. +# # Revision 1.11 2002/02/21 23:11:45 richard # . fixed some problems in date calculations (calendar.py doesn't handle over- # and under-flow). Also, hour/minute/second intervals may now be more than
