Mercurial > p > roundup > code
comparison test/test_htmltemplate.py @ 672:d92e06a3a56e
Fixed display of mutlilink properties...
...when using the template functions, menu and plain.
| author | Roche Compaan <rochecompaan@users.sourceforge.net> |
|---|---|
| date | Fri, 29 Mar 2002 19:41:48 +0000 |
| parents | 7dd13fd5d8ea |
| children | bc46480e2a2b 54333751e98d |
comparison
equal
deleted
inserted
replaced
| 671:23685c45ab81 | 672:d92e06a3a56e |
|---|---|
| 6 # | 6 # |
| 7 # This module is distributed in the hope that it will be useful, | 7 # This module is distributed in the hope that it will be useful, |
| 8 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 8 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 10 # | 10 # |
| 11 # $Id: test_htmltemplate.py,v 1.11 2002-02-21 23:11:45 richard Exp $ | 11 # $Id: test_htmltemplate.py,v 1.12 2002-03-29 19:41:48 rochecompaan Exp $ |
| 12 | 12 |
| 13 import unittest, cgi, time | 13 import unittest, cgi, time |
| 14 | 14 |
| 15 from roundup import date, password | 15 from roundup import date, password |
| 16 from roundup.htmltemplate import TemplateFunctions | 16 from roundup.htmltemplate import TemplateFunctions |
| 95 | 95 |
| 96 def testPlain_link(self): | 96 def testPlain_link(self): |
| 97 self.assertEqual(self.tf.do_plain('link'), 'the key1') | 97 self.assertEqual(self.tf.do_plain('link'), 'the key1') |
| 98 | 98 |
| 99 def testPlain_multilink(self): | 99 def testPlain_multilink(self): |
| 100 self.assertEqual(self.tf.do_plain('multilink'), '1, 2') | 100 self.assertEqual(self.tf.do_plain('multilink'), 'the key1, the key2') |
| 101 | 101 |
| 102 | 102 |
| 103 # def do_field(self, property, size=None, showid=0): | 103 # def do_field(self, property, size=None, showid=0): |
| 104 def testField_string(self): | 104 def testField_string(self): |
| 105 self.assertEqual(self.tf.do_field('string'), | 105 self.assertEqual(self.tf.do_field('string'), |
| 342 return unittest.makeSuite(NodeCase, 'test') | 342 return unittest.makeSuite(NodeCase, 'test') |
| 343 | 343 |
| 344 | 344 |
| 345 # | 345 # |
| 346 # $Log: not supported by cvs2svn $ | 346 # $Log: not supported by cvs2svn $ |
| 347 # Revision 1.11 2002/02/21 23:11:45 richard | |
| 348 # . fixed some problems in date calculations (calendar.py doesn't handle over- | |
| 349 # and under-flow). Also, hour/minute/second intervals may now be more than | |
| 350 # 99 each. | |
| 351 # | |
| 347 # Revision 1.10 2002/02/21 06:57:39 richard | 352 # Revision 1.10 2002/02/21 06:57:39 richard |
| 348 # . Added popup help for classes using the classhelp html template function. | 353 # . Added popup help for classes using the classhelp html template function. |
| 349 # - add <display call="classhelp('priority', 'id,name,description')"> | 354 # - add <display call="classhelp('priority', 'id,name,description')"> |
| 350 # to an item page, and it generates a link to a popup window which displays | 355 # to an item page, and it generates a link to a popup window which displays |
| 351 # the id, name and description for the priority class. The description | 356 # the id, name and description for the priority class. The description |
