MCPcopy Create free account
hub / github.com/ParzivalHack/PySpector / test_valid_decode_safe

Method test_valid_decode_safe

tests/unit/test_missing_rules.py:212–214  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

210 assert fires(code, "JWT001"), "JWT001 must fire: algorithms=['none']"
211
212 def test_valid_decode_safe(self):
213 code = "payload = jwt.decode(token, secret, algorithms=['HS256'])"
214 assert not_fires(code, "JWT001"), "JWT001 must NOT fire for valid HS256 decode"
215
216
217# ============================================================

Callers

nothing calls this directly

Calls 1

not_firesFunction · 0.70

Tested by

no test coverage detected