Log message for revision 30570:
  Added test for strftime with unicode pattern.
  

Changed:
  U   Zope/branches/Zope-2_8-branch/lib/python/DateTime/tests/testDateTime.py

-=-
Modified: 
Zope/branches/Zope-2_8-branch/lib/python/DateTime/tests/testDateTime.py
===================================================================
--- Zope/branches/Zope-2_8-branch/lib/python/DateTime/tests/testDateTime.py     
2005-05-31 14:30:17 UTC (rev 30569)
+++ Zope/branches/Zope-2_8-branch/lib/python/DateTime/tests/testDateTime.py     
2005-05-31 14:58:17 UTC (rev 30570)
@@ -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)

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to