Skip to content

Commit ba83844

Browse files
author
Richard Jones
committed
[SF#511586] unittest FAIL: testReldate_date
1 parent e6ce87e commit ba83844

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

CHANGES.txt

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
This file contains the changes to the Roundup system over time. The entries
22
are given with the most recent entry first.
33

4+
2002-02-?? - ?????
5+
Fixed:
6+
. respect encodings in non multipart messages.
7+
. makeHtmlBase: re.sub under python 2.2 did not replace '.', string.replace
8+
does it.
9+
. preamble in tepmlateBuilder mentioned htmldata
10+
. mailgw checks encoding on first part too.
11+
. #511586 ] unittest FAIL: testReldate_date
12+
13+
414
2002-01-24 - 0.4.0
515
Feature:
616
. much nicer history display (actualy real handling of property types etc)
@@ -10,10 +20,6 @@ Feature:
1020
. you can now use the roundup-admin tool pack the database
1121

1222
Fixed:
13-
. respect encodings in non multipart messages.
14-
. makeHtmlBase: re.sub under python 2.2 did not replace '.', string.replace does it.
15-
. preamble in tepmlateBuilder mentioned htmldata
16-
. mailgw checks encoding on first part too.
1723
. the mail gateway now responds with an error message when invalid values
1824
for arguments are specified for link or mutlilink properties
1925
. modified unit test to check nosy and assignedto when specified as arguments
@@ -30,6 +36,7 @@ Fixed:
3036
. run_tests testReldate_date failed if LANG is 'german'
3137
. mailgw failures (unexpected ones) are forwarded to the roundup admin
3238

39+
3340
2002-01-16 - 0.4.0b2
3441
Fixed:
3542
. #495392 ] empty nosy -patch

test/test_htmltemplate.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# but WITHOUT ANY WARRANTY; without even the implied warranty of
99
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1010
#
11-
# $Id: test_htmltemplate.py,v 1.7 2002-01-23 20:09:41 jhermann Exp $
11+
# $Id: test_htmltemplate.py,v 1.8 2002-02-06 03:47:16 richard Exp $
1212

1313
import unittest, cgi, time
1414

@@ -236,8 +236,8 @@ def testReldate_nondate(self):
236236

237237
def testReldate_date(self):
238238
self.assertEqual(self.tf.do_reldate('date'), '- 2y 1m')
239-
self.assertEqual(self.tf.do_reldate('date', pretty=1),
240-
' 1 %s 2000' % time.strftime('%B', time.localtime(0)))
239+
date = self.tf.cl.get('1', 'date')
240+
self.assertEqual(self.tf.do_reldate('date', pretty=1), date.pretty())
241241

242242
# def do_download(self, property):
243243
def testDownload_novalue(self):
@@ -314,6 +314,9 @@ def suite():
314314

315315
#
316316
# $Log: not supported by cvs2svn $
317+
# Revision 1.7 2002/01/23 20:09:41 jhermann
318+
# Proper fix for failing test
319+
#
317320
# Revision 1.6 2002/01/23 05:47:57 richard
318321
# more HTML template cleanup and unit tests
319322
#

0 commit comments

Comments
 (0)