MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_revert

Function test_revert

test/mitmproxy/addons/test_core.py:57–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55
56
57def test_revert():
58 sa = core.Core()
59 with taddons.context(loadcore=False):
60 f = tflow.tflow()
61 f.backup()
62 f.request.content = b"bar"
63 assert f.modified()
64 sa.revert([f])
65 assert not f.modified()
66
67
68def test_flow_set():

Callers

nothing calls this directly

Calls 4

revertMethod · 0.95
contextMethod · 0.80
backupMethod · 0.80
modifiedMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…