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

Method test_backup

test/mitmproxy/test_http.py:682–691  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

680 flowfilter.match("~", f)
681
682 def test_backup(self):
683 f = tflow()
684 f.response = tresp()
685 f.request.content = b"foo"
686 assert not f.modified()
687 f.backup()
688 f.request.content = b"bar"
689 assert f.modified()
690 f.revert()
691 assert f.request.content == b"foo"
692
693 def test_backup_idempotence(self):
694 f = tflow(resp=True)

Callers

nothing calls this directly

Calls 5

tflowFunction · 0.90
trespFunction · 0.90
modifiedMethod · 0.80
backupMethod · 0.80
revertMethod · 0.45

Tested by

no test coverage detected