(filename, tdata)
| 21 | ], |
| 22 | ) |
| 23 | def 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 | |
| 33 | def test_render_priority(): |