diff options
| author | David Smith <smithdc@gmail.com> | 2021-07-23 07:48:16 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-07-29 06:24:12 +0200 |
| commit | 1024b5e74a7166313ad4e4975a15e90dccd3ec5f (patch) | |
| tree | 05d75177f183de5e3c58dbf25a3f71ff4a5c820a /tests/middleware | |
| parent | acde91745656a852a15db7611c08cabf93bb735b (diff) | |
| download | django-1024b5e74a7166313ad4e4975a15e90dccd3ec5f.tar.gz | |
Fixed 32956 -- Lowercased spelling of "web" and "web framework" where appropriate.
Diffstat (limited to 'tests/middleware')
| -rw-r--r-- | tests/middleware/tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
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): |
