summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Hill <alex@hill.net.au>2016-07-24 22:00:39 +0800
committerMarkus Holtermann <info@markusholtermann.eu>2016-07-24 17:17:00 +0200
commit971120778a7e7b7ebc2fc48275cca20a87580efe (patch)
tree9303ca486ef0f608b7272ac9c80763f04f233c13 /tests
parent32cf01c1c1dcd5fa5d700d0e5117778caf947b74 (diff)
Fixed #26945 -- Ensured that i18n_patterns returns a list
Diffstat (limited to 'tests')
-rw-r--r--tests/i18n/tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/i18n/tests.py b/tests/i18n/tests.py
index cbec5ee206..b6aeae8caa 100644
--- a/tests/i18n/tests.py
+++ b/tests/i18n/tests.py
@@ -1525,6 +1525,12 @@ class MiscTests(SimpleTestCase):
with self.settings(LANGUAGES=[('en', 'English')]):
self.assertNotEqual('pt-br', g(r))
+ def test_i18n_patterns_returns_list(self):
+ with override_settings(USE_I18N=False):
+ self.assertIsInstance(i18n_patterns([]), list)
+ with override_settings(USE_I18N=True):
+ self.assertIsInstance(i18n_patterns([]), list)
+
class ResolutionOrderI18NTests(SimpleTestCase):