MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / test_use_text

Function test_use_text

test/mitmproxy/contentviews/test__view_xml_html.py:23–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22
23def test_use_text():
24 meta1 = Metadata()
25 meta2 = Metadata(
26 http_message=http.Response.make(
27 content=b"\xf8",
28 )
29 )
30 assert xml_html.prettify(b"\xf8", meta1) != "ø\n"
31 assert xml_html.prettify(b"\xf8", meta2) == "ø\n"
32
33
34@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

MetadataClass · 0.90
makeMethod · 0.45
prettifyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…