|
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.6 2002-01-23 05:47:57 richard Exp $ |
| 11 | +# $Id: test_htmltemplate.py,v 1.7 2002-01-23 20:09:41 jhermann Exp $ |
12 | 12 |
|
13 | | -import unittest, cgi |
| 13 | +import unittest, cgi, time |
14 | 14 |
|
15 | 15 | from roundup import date, password |
16 | 16 | from roundup.htmltemplate import TemplateFunctions |
@@ -237,7 +237,7 @@ def testReldate_nondate(self): |
237 | 237 | def testReldate_date(self): |
238 | 238 | self.assertEqual(self.tf.do_reldate('date'), '- 2y 1m') |
239 | 239 | self.assertEqual(self.tf.do_reldate('date', pretty=1), |
240 | | - ' 1 January 2000') |
| 240 | + ' 1 %s 2000' % time.strftime('%B', time.localtime(0))) |
241 | 241 |
|
242 | 242 | # def do_download(self, property): |
243 | 243 | def testDownload_novalue(self): |
@@ -314,6 +314,9 @@ def suite(): |
314 | 314 |
|
315 | 315 | # |
316 | 316 | # $Log: not supported by cvs2svn $ |
| 317 | +# Revision 1.6 2002/01/23 05:47:57 richard |
| 318 | +# more HTML template cleanup and unit tests |
| 319 | +# |
317 | 320 | # Revision 1.5 2002/01/23 05:10:28 richard |
318 | 321 | # More HTML template cleanup and unit tests. |
319 | 322 | # - download() now implemented correctly, replacing link(is_download=1) [fixed in the |
|
0 commit comments