mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #32956 -- Capitalized HTTP/HTTPS in comments, docs, and docstrings.
This commit is contained in:
committed by
Mariusz Felisiak
parent
fd881e8cd9
commit
7ef0bc922c
@@ -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