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

Method test_kill

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

Source from the content-addressed store, hash-verified

719 assert f.get_state() == f2.get_state()
720
721 def test_kill(self):
722 f = tflow()
723 f.intercept()
724 f.resume()
725 assert f.killable
726 f.kill()
727 assert not f.killable
728
729 f = tflow()
730 f.intercept()
731 assert f.killable
732 f.kill()
733 assert not f.killable
734 assert f.error.msg == flow.Error.KILLED_MESSAGE
735
736 def test_intercept(self):
737 f = tflow()

Callers

nothing calls this directly

Calls 4

tflowFunction · 0.90
interceptMethod · 0.45
resumeMethod · 0.45
killMethod · 0.45

Tested by

no test coverage detected