1
0
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:
David Smith
2021-10-19 20:01:44 +01:00
committed by Mariusz Felisiak
parent fd881e8cd9
commit 7ef0bc922c
7 changed files with 9 additions and 11 deletions

View File

@@ -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)