Commit 8800bb55 authored by Florent Guillaume's avatar Florent Guillaume

Merged revision 30570 from Zope-2_8-branch:

Added test for strftime with unicode pattern.
parent 1239c640
......@@ -373,7 +373,10 @@ class DateTimeTests(unittest.TestCase):
dt2 = DateTime('2040/01/30 11:33 GMT-2')
self.assertEqual(dt1.strftime('%d/%m/%Y %H:%M'), dt2.strftime('%d/%m/%Y %H:%M'))
def testStrftimeUnicode(self):
dt = DateTime('2002-05-02T08:00:00+00:00')
self.assertEqual(dt.strftime(u'Le %d/%m/%Y \xe0 %Hh%M'),
u'Le 02/05/2002 \xe0 10h00')
def test_suite():
return unittest.makeSuite(DateTimeTests)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment