| 151 | # ============================================================ |
| 152 | |
| 153 | class 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 | # ============================================================ |
nothing calls this directly
no outgoing calls
no test coverage detected