diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/i18n/tests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/i18n/tests.py b/tests/i18n/tests.py index 07203b341e..e1dad91cc1 100644 --- a/tests/i18n/tests.py +++ b/tests/i18n/tests.py @@ -1512,6 +1512,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): |
