summaryrefslogtreecommitdiff
path: root/tests/csrf_tests/test_context_processor.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/csrf_tests/test_context_processor.py')
-rw-r--r--tests/csrf_tests/test_context_processor.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/csrf_tests/test_context_processor.py b/tests/csrf_tests/test_context_processor.py
index 26a2b7aedb..903237d68f 100644
--- a/tests/csrf_tests/test_context_processor.py
+++ b/tests/csrf_tests/test_context_processor.py
@@ -6,10 +6,9 @@ from .tests import CsrfFunctionTestMixin
class TestContextProcessor(CsrfFunctionTestMixin, SimpleTestCase):
-
def test_force_token_to_string(self):
request = HttpRequest()
- test_secret = 32 * 'a'
- request.META['CSRF_COOKIE'] = test_secret
- token = csrf(request).get('csrf_token')
+ test_secret = 32 * "a"
+ request.META["CSRF_COOKIE"] = test_secret
+ token = csrf(request).get("csrf_token")
self.assertMaskedSecretCorrect(token, test_secret)