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

Class TestDESER725

tests/unit/test_missing_rules.py:139–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137# ============================================================
138
139class TestDESER725:
140 def test_jsonpickle_decode_fires(self):
141 code = "import jsonpickle; obj = jsonpickle.decode(data)"
142 assert fires(code, "DESER725"), "DESER725 must fire: jsonpickle.decode"
143
144 def test_comment_line_safe(self):
145 code = "# jsonpickle.decode(data)"
146 assert not_fires(code, "DESER725"), "DESER725 must NOT fire in comment"
147
148
149# ============================================================

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected