1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Changed "language-code" to the more commonly used "language code".

This commit is contained in:
Sebastian Sangervasi
2018-02-21 09:30:56 -05:00
committed by Tim Graham
parent 33ac036a6b
commit 5c4c87e55c
3 changed files with 9 additions and 12 deletions

View File

@@ -293,9 +293,7 @@ class URLRedirectWithoutTrailingSlashSettingTests(URLTestCaseBase):
class URLResponseTests(URLTestCaseBase):
"""
Tests if the response has the right language-code.
"""
"""Tests if the response has the correct language code."""
def test_not_prefixed_with_prefix(self):
response = self.client.get('/en/not-prefixed/')
self.assertEqual(response.status_code, 404)