MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_copy

Method test_copy

test/mitmproxy/test_flow.py:106–115  ·  view source on GitHub ↗

_backup may be shared across instances. That should not raise errors.

(self)

Source from the content-addressed store, hash-verified

104 list(r.stream())
105
106 def test_copy(self):
107 """
108 _backup may be shared across instances. That should not raise errors.
109 """
110 f = tflow.tflow()
111 f.backup()
112 f.request.path = "/foo"
113 f2 = f.copy()
114 f2.revert()
115 f.revert()
116
117
118class TestFlowMaster:

Callers

nothing calls this directly

Calls 3

backupMethod · 0.80
copyMethod · 0.45
revertMethod · 0.45

Tested by

no test coverage detected