(self)
| 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 | """ |