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

Method test_flow_contentview

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

Source from the content-addressed store, hash-verified

349 f.revert()
350
351 def test_flow_contentview(self):
352 assert get_json(self.fetch("/flows/42/request/content/raw")) == {
353 "description": "",
354 "syntax_highlight": "none",
355 "text": "foo\nbar",
356 "view_name": "Raw",
357 }
358 assert get_json(self.fetch("/flows/42/request/content/raw?lines=1")) == {
359 "description": "",
360 "syntax_highlight": "none",
361 "text": "foo\n",
362 "view_name": "Raw",
363 }
364 assert self.fetch("/flows/42/messages/content/raw").code == 400
365
366 def test_flow_contentview_websocket(self):
367 assert get_json(self.fetch("/flows/43/messages/content/raw?lines=2")) == [

Callers

nothing calls this directly

Calls 2

fetchMethod · 0.95
get_jsonFunction · 0.70

Tested by

no test coverage detected