summaryrefslogtreecommitdiff
path: root/tests/test_plural.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_plural.py')
-rw-r--r--tests/test_plural.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_plural.py b/tests/test_plural.py
index 5fe67a5..7f31fd9 100644
--- a/tests/test_plural.py
+++ b/tests/test_plural.py
@@ -90,3 +90,11 @@ def test_plural_within_rules():
assert p(7) == 'few'
assert p(8) == 'few'
assert p(9) == 'few'
+
+
+def test_locales_with_no_plural_rules_have_default():
+ from babel import Locale
+ aa_plural = Locale.parse('aa').plural_form
+ assert aa_plural(1) == 'other'
+ assert aa_plural(2) == 'other'
+ assert aa_plural(15) == 'other'