summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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 43d1682c96..9ccbc25ca5 100644
--- a/tests/i18n/tests.py
+++ b/tests/i18n/tests.py
@@ -2132,6 +2132,12 @@ class UnprefixedDefaultLanguageTests(SimpleTestCase):
response = self.client.get("/simple/")
self.assertEqual(response.content, b"Yes")
+ @override_settings(LANGUAGE_CODE="en-us")
+ def test_default_lang_fallback_without_prefix(self):
+ response = self.client.get("/simple/")
+ self.assertEqual(response.status_code, 200)
+ self.assertEqual(response.content, b"Yes")
+
def test_other_lang_with_prefix(self):
response = self.client.get("/fr/simple/")
self.assertEqual(response.content, b"Oui")