From 03b0a7babfa67020e9af574b9a8dff2e35f0ea60 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Sun, 20 Dec 2015 23:33:50 +0200 Subject: [PATCH] Test that Lithuanian long-form dates are formatted with the correct genitive form of the month Fixes #288 --- tests/test_dates.py | 7 +++++++ 1 file changed, 7 insertions(+) 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.' + ) -- 2.47.2