[Zope-Checkins]
SVN: Zope/trunk/lib/python/DateTime/tests/testDateTime.py
Merged revision 30570 from Zope-2_8-branch:
Florent Guillaume
fg at nuxeo.com
Tue May 31 12:00:54 EDT 2005
Log message for revision 30571:
Merged revision 30570 from Zope-2_8-branch:
Added test for strftime with unicode pattern.
Changed:
U Zope/trunk/lib/python/DateTime/tests/testDateTime.py
-=-
Modified: Zope/trunk/lib/python/DateTime/tests/testDateTime.py
===================================================================
--- Zope/trunk/lib/python/DateTime/tests/testDateTime.py 2005-05-31 14:58:17 UTC (rev 30570)
+++ Zope/trunk/lib/python/DateTime/tests/testDateTime.py 2005-05-31 16:00:54 UTC (rev 30571)
@@ -373,7 +373,10 @@
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)
More information about the Zope-Checkins
mailing list