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

Method test_index

test/mitmproxy/tools/web/test_app.py:104–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

102 )
103
104 def test_index(self):
105 response = self.fetch("/")
106 assert response.code == 200
107 assert b'="/' not in response.body, (
108 "HTML content should not contain root-relative paths"
109 )
110
111 def test_filter_help(self):
112 assert self.fetch("/filter-help").code == 200

Callers

nothing calls this directly

Calls 1

fetchMethod · 0.95

Tested by

no test coverage detected