From 1024b5e74a7166313ad4e4975a15e90dccd3ec5f Mon Sep 17 00:00:00 2001 From: David Smith Date: Fri, 23 Jul 2021 07:48:16 +0100 Subject: Fixed 32956 -- Lowercased spelling of "web" and "web framework" where appropriate. --- tests/middleware/tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/middleware/tests.py') diff --git a/tests/middleware/tests.py b/tests/middleware/tests.py index c7a007b821..8842552f77 100644 --- a/tests/middleware/tests.py +++ b/tests/middleware/tests.py @@ -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): -- cgit v1.3