From: Aarni Koskela Date: Sun, 20 Dec 2015 21:33:50 +0000 (+0200) Subject: Test that Lithuanian long-form dates are formatted with the correct genitive form... X-Git-Tag: 2.2.0~10^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03b0a7babfa67020e9af574b9a8dff2e35f0ea60;p=thirdparty%2Fbabel.git Test that Lithuanian long-form dates are formatted with the correct genitive form of the month Fixes #288 --- diff --git a/tests/test_dates.py b/tests/test_dates.py index 1b03cbf0..0f099f31 100644 --- a/tests/test_dates.py +++ b/tests/test_dates.py @@ -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.' + )