[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/lib/python/DateTime/tests/testDateTime.py Fixed unit test.

Florent Guillaume fg at nuxeo.com
Wed Jun 1 06:27:11 EDT 2005


Log message for revision 30588:
  Fixed unit test.

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 22:54:13 UTC (rev 30587)
+++ Zope/branches/Zope-2_8-branch/lib/python/DateTime/tests/testDateTime.py	2005-06-01 10:27:10 UTC (rev 30588)
@@ -375,8 +375,8 @@
 
     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')
+        ok = dt.strftime('Le %d/%m/%Y a %Hh%M').replace('a', u'\xe0')
+        self.assertEqual(dt.strftime(u'Le %d/%m/%Y \xe0 %Hh%M'), ok)
 
 def test_suite():
     return unittest.makeSuite(DateTimeTests)



More information about the Zope-Checkins mailing list