mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fix all violators of E231
This commit is contained in:
@@ -115,7 +115,7 @@ class CsrfViewMiddlewareTest(TestCase):
|
||||
self.assertEqual(csrf_cookie['secure'], True)
|
||||
self.assertEqual(csrf_cookie['httponly'], True)
|
||||
self.assertEqual(csrf_cookie['path'], '/test/')
|
||||
self.assertTrue('Cookie' in resp2.get('Vary',''))
|
||||
self.assertTrue('Cookie' in resp2.get('Vary', ''))
|
||||
|
||||
def test_process_response_get_token_not_used(self):
|
||||
"""
|
||||
@@ -336,7 +336,7 @@ class CsrfViewMiddlewareTest(TestCase):
|
||||
req = self._get_GET_no_csrf_cookie_request()
|
||||
resp = view(req)
|
||||
self.assertTrue(resp.cookies.get(settings.CSRF_COOKIE_NAME, False))
|
||||
self.assertTrue('Cookie' in resp.get('Vary',''))
|
||||
self.assertTrue('Cookie' in resp.get('Vary', ''))
|
||||
|
||||
def test_ensures_csrf_cookie_with_middleware(self):
|
||||
"""
|
||||
@@ -353,7 +353,7 @@ class CsrfViewMiddlewareTest(TestCase):
|
||||
resp = view(req)
|
||||
resp2 = CsrfViewMiddleware().process_response(req, resp)
|
||||
self.assertTrue(resp2.cookies.get(settings.CSRF_COOKIE_NAME, False))
|
||||
self.assertTrue('Cookie' in resp2.get('Vary',''))
|
||||
self.assertTrue('Cookie' in resp2.get('Vary', ''))
|
||||
|
||||
def test_ensures_csrf_cookie_no_logging(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user