1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed 32956 -- Lowercased spelling of "web" and "web framework" where appropriate.

This commit is contained in:
David Smith
2021-07-23 07:48:16 +01:00
committed by Mariusz Felisiak
parent acde917456
commit 1024b5e74a
113 changed files with 265 additions and 267 deletions

View File

@@ -51,13 +51,13 @@ class CommonMiddlewareTest(SimpleTestCase):
Matches to explicit slashless URLs should go unmolested.
"""
def get_response(req):
return HttpResponse("Here's the text of the Web page.")
return HttpResponse("Here's the text of the web page.")
request = self.rf.get('/noslash')
self.assertIsNone(CommonMiddleware(get_response).process_request(request))
self.assertEqual(
CommonMiddleware(get_response)(request).content,
b"Here's the text of the Web page.",
b"Here's the text of the web page.",
)
@override_settings(APPEND_SLASH=True)
@@ -206,12 +206,12 @@ class CommonMiddlewareTest(SimpleTestCase):
Matches to explicit slashless URLs should go unmolested.
"""
def get_response(req):
return HttpResponse("Web content")
return HttpResponse("web content")
request = self.rf.get('/customurlconf/noslash')
request.urlconf = 'middleware.extra_urls'
self.assertIsNone(CommonMiddleware(get_response).process_request(request))
self.assertEqual(CommonMiddleware(get_response)(request).content, b'Web content')
self.assertEqual(CommonMiddleware(get_response)(request).content, b'web content')
@override_settings(APPEND_SLASH=True)
def test_append_slash_slashless_unknown_custom_urlconf(self):