MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_format_xml

Function test_format_xml

test/mitmproxy/contentviews/test__view_javascript.py:23–30  ·  view source on GitHub ↗
(filename, tdata)

Source from the content-addressed store, hash-verified

21 ],
22)
23def test_format_xml(filename, tdata):
24 path = tdata.path("mitmproxy/contentviews/test_js_data/" + filename)
25 with open(path) as f:
26 input = f.read()
27 with open("-formatted.".join(path.rsplit(".", 1))) as f:
28 expected = f.read()
29 js = beautify(input)
30 assert js == expected
31
32
33def test_render_priority():

Callers

nothing calls this directly

Calls 4

beautifyFunction · 0.90
pathMethod · 0.45
readMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…