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

Method test_versioncheck

test/mitmproxy/test_flow.py:94–104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92 assert str(f) == "foo"
93
94 def test_versioncheck(self):
95 f = tflow.tflow()
96 d = f.get_state()
97 d["version"] = (0, 0)
98 sio = io.BytesIO()
99 tnetstring.dump(d, sio)
100 sio.seek(0)
101
102 r = mitmproxy.io.FlowReader(sio)
103 with pytest.raises(Exception, match="version"):
104 list(r.stream())
105
106 def test_copy(self):
107 """

Callers

nothing calls this directly

Calls 3

streamMethod · 0.95
get_stateMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected