MCPcopy
hub / github.com/django/django / test_mask_cipher_secret

Method test_mask_cipher_secret

tests/csrf_tests/tests.py:95–104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

93 self.assertEqual(actual, secret)
94
95 def test_mask_cipher_secret(self):
96 cases = [
97 32 * "a",
98 TEST_SECRET,
99 "da4SrUiHJYoJ0HYQ0vcgisoIuFOxx4ER",
100 ]
101 for secret in cases:
102 with self.subTest(secret=secret):
103 masked = _mask_cipher_secret(secret)
104 self.assertMaskedSecretCorrect(masked, secret)
105
106 def test_get_token_csrf_cookie_set(self):
107 request = HttpRequest()

Callers

nothing calls this directly

Calls 2

_mask_cipher_secretFunction · 0.90

Tested by

no test coverage detected