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

Class TestDESER726

tests/unit/test_missing_rules.py:153–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151# ============================================================
152
153class TestDESER726:
154 def test_dill_loads_fires(self):
155 code = "import dill; obj = dill.loads(payload)"
156 assert fires(code, "DESER726"), "DESER726 must fire: dill.loads"
157
158 def test_comment_line_safe(self):
159 code = "# dill.loads(data)"
160 assert not_fires(code, "DESER726"), "DESER726 must NOT fire in comment"
161
162
163# ============================================================

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected