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

Method test_cannot_migrate

test/mitmproxy/io/test_io.py:54–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 pass
53
54 def test_cannot_migrate(self):
55 with pytest.raises(
56 exceptions.FlowReadException,
57 match="cannot read files with flow format version 0",
58 ):
59 for _ in FlowReader(io.BytesIO(b"14:7:version;1:0#}")).stream():
60 pass

Callers

nothing calls this directly

Calls 2

FlowReaderClass · 0.90
streamMethod · 0.80

Tested by

no test coverage detected