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

Method test_match

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

Source from the content-addressed store, hash-verified

668 assert f.error is not f2.error
669
670 def test_match(self):
671 f = tflow(resp=True)
672 assert not flowfilter.match("~b test", f)
673 assert flowfilter.match(None, f)
674 assert not flowfilter.match("~b test", f)
675
676 f = tflow(err=True)
677 assert flowfilter.match("~e", f)
678
679 with pytest.raises(ValueError):
680 flowfilter.match("~", f)
681
682 def test_backup(self):
683 f = tflow()

Callers

nothing calls this directly

Calls 2

tflowFunction · 0.90
matchMethod · 0.45

Tested by

no test coverage detected