]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
czech data changed; update the test
authorAlex Morega <alex@grep.ro>
Fri, 5 Jul 2013 09:10:37 +0000 (11:10 +0200)
committerAlex Morega <alex@grep.ro>
Fri, 5 Jul 2013 09:10:37 +0000 (11:10 +0200)
babel/tests/dates.py

index 090de81b01ab567de32aa00a210f37033b8d6ace..e5da1b15a9a4e824954f457232ea30f967c522c9 100644 (file)
@@ -35,11 +35,11 @@ class DateTimeFormatTestCase(unittest.TestCase):
         self.assertEqual('Q4', fmt['QQQ'])
 
     def test_month_context(self):
-        d = date(2006, 1, 8)
+        d = date(2006, 2, 8)
         fmt = dates.DateTimeFormat(d, locale='cs_CZ')
-        self.assertEqual('1', fmt['MMM'])
+        self.assertEqual(u'2', fmt['MMMMM']) # narrow format
         fmt = dates.DateTimeFormat(d, locale='cs_CZ')
-        self.assertEqual('1.', fmt['LLL'])
+        self.assertEqual(u'รบ', fmt['LLLLL']) # narrow standalone
 
     def test_abbreviated_month_alias(self):
         d = date(2006, 3, 8)