Commit 2dd2cf21 authored by Florent Guillaume's avatar Florent Guillaume

Fixed unit test.

parent 91e3fa2e
...@@ -375,8 +375,8 @@ class DateTimeTests(unittest.TestCase): ...@@ -375,8 +375,8 @@ class DateTimeTests(unittest.TestCase):
def testStrftimeUnicode(self): def testStrftimeUnicode(self):
dt = DateTime('2002-05-02T08:00:00+00:00') dt = DateTime('2002-05-02T08:00:00+00:00')
self.assertEqual(dt.strftime(u'Le %d/%m/%Y \xe0 %Hh%M'), ok = dt.strftime('Le %d/%m/%Y a %Hh%M').replace('a', u'\xe0')
u'Le 02/05/2002 \xe0 10h00') self.assertEqual(dt.strftime(u'Le %d/%m/%Y \xe0 %Hh%M'), ok)
def test_suite(): def test_suite():
return unittest.makeSuite(DateTimeTests) 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