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

Method test_intercept

test/mitmproxy/test_http.py:736–741  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

734 assert f.error.msg == flow.Error.KILLED_MESSAGE
735
736 def test_intercept(self):
737 f = tflow()
738 f.intercept()
739 assert f.intercepted
740 f.intercept()
741 assert f.intercepted
742
743 def test_resume(self):
744 f = tflow()

Callers

nothing calls this directly

Calls 2

tflowFunction · 0.90
interceptMethod · 0.45

Tested by

no test coverage detected