]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Test that Lithuanian long-form dates are formatted with the correct genitive form... 294/head
authorAarni Koskela <akx@iki.fi>
Sun, 20 Dec 2015 21:33:50 +0000 (23:33 +0200)
committerAarni Koskela <akx@iki.fi>
Mon, 21 Dec 2015 08:52:25 +0000 (10:52 +0200)
Fixes #288

tests/test_dates.py

index 1b03cbf0062ebb67812285cdc4f75cbfd8cef2bf..0f099f31f379357a0bbfd457378896a18e4cf2b7 100644 (file)
@@ -540,3 +540,10 @@ def test_parse_pattern():
     assert (dates.parse_pattern("H:mm' Uhr 'z").format ==
             u'%(H)s:%(mm)s Uhr %(z)s')
     assert dates.parse_pattern("hh' o''clock'").format == u"%(hh)s o'clock"
+
+
+def test_lithuanian_long_format():
+    assert (
+        dates.format_date(date(2015, 12, 10), locale='lt_LT', format='long') ==
+        u'2015 m. gruodÅžio 10 d.'
+    )