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.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/csrf_tests/test_context_processor.py b/tests/csrf_tests/test_context_processor.py
index 0949ed4e34..26a2b7aedb 100644
--- a/tests/csrf_tests/test_context_processor.py
+++ b/tests/csrf_tests/test_context_processor.py
@@ -9,7 +9,7 @@ class TestContextProcessor(CsrfFunctionTestMixin, SimpleTestCase):
def test_force_token_to_string(self):
request = HttpRequest()
- test_token = '1bcdefghij2bcdefghij3bcdefghij4bcdefghij5bcdefghij6bcdefghijABCD'
- request.META['CSRF_COOKIE'] = test_token
+ test_secret = 32 * 'a'
+ request.META['CSRF_COOKIE'] = test_secret
token = csrf(request).get('csrf_token')
- self.assertMaskedSecretCorrect(token, 'lcccccccX2kcccccccY2jcccccccssIC')
+ self.assertMaskedSecretCorrect(token, test_secret)