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

Method test_etree_parse_fires

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

Source from the content-addressed store, hash-verified

234
235class TestXXE001:
236 def test_etree_parse_fires(self):
237 code = "from lxml import etree; tree = etree.parse(user_file)"
238 assert fires(code, "XXE001"), "XXE001 must fire: etree.parse without safe parser"
239
240 def test_etree_fromstring_fires(self):
241 code = "from lxml import etree; root = etree.fromstring(xml_data)"

Callers

nothing calls this directly

Calls 1

firesFunction · 0.70

Tested by

no test coverage detected