MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_match

Method test_match

test/mitmproxy/test_tcp.py:43–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 assert f.error is not f2.error
42
43 def test_match(self):
44 f = tflow.ttcpflow()
45 assert not flowfilter.match("~b nonexistent", f)
46 assert flowfilter.match(None, f)
47 assert not flowfilter.match("~b nonexistent", f)
48
49 f = tflow.ttcpflow(err=True)
50 assert flowfilter.match("~e", f)
51
52 with pytest.raises(ValueError):
53 flowfilter.match("~", f)
54
55 def test_repr(self):
56 f = tflow.ttcpflow()

Callers

nothing calls this directly

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected