mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[4.0.x] Refs #32956 -- Capitalized HTTP/HTTPS in comments, docs, and docstrings.
Backport of 7ef0bc922c from main
This commit is contained in:
committed by
Mariusz Felisiak
parent
ea66d1f2ae
commit
5d62beb61a
@@ -360,12 +360,12 @@ class ClientTest(TestCase):
|
||||
self.assertContains(response, '30 is the value')
|
||||
|
||||
def test_redirect_http(self):
|
||||
"GET a URL that redirects to an http URI"
|
||||
"""GET a URL that redirects to an HTTP URI."""
|
||||
response = self.client.get('/http_redirect_view/', follow=True)
|
||||
self.assertFalse(response.test_was_secure_request)
|
||||
|
||||
def test_redirect_https(self):
|
||||
"GET a URL that redirects to an https URI"
|
||||
"""GET a URL that redirects to an HTTPS URI."""
|
||||
response = self.client.get('/https_redirect_view/', follow=True)
|
||||
self.assertTrue(response.test_was_secure_request)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user