summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAarni Koskela <akx@iki.fi>2015-12-20 23:33:50 +0200
committerAarni Koskela <akx@iki.fi>2015-12-21 10:52:25 +0200
commit03b0a7babfa67020e9af574b9a8dff2e35f0ea60 (patch)
tree5a4e57ae0274c5afa1c49431187c1b0bfc93ffd2
parent5a633c8fdb39d563ba7b95d1a9d118c2f22dbdad (diff)
downloadbabel-03b0a7babfa67020e9af574b9a8dff2e35f0ea60.tar.gz
Test that Lithuanian long-form dates are formatted with the correct genitive form of the month
Fixes #288
-rw-r--r--tests/test_dates.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_dates.py b/tests/test_dates.py
index 1b03cbf..0f099f3 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.'
+ )