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

Function test_load

test/mitmproxy/addons/test_clientplayback.py:210–218  ·  view source on GitHub ↗
(tdata)

Source from the content-addressed store, hash-verified

208
209
210def test_load(tdata):
211 cp = ClientPlayback()
212 with taddons.context(cp):
213 cp.load_file(tdata.path("mitmproxy/data/dumpfile-018.mitm"))
214 assert cp.count() == 1
215
216 with pytest.raises(CommandError):
217 cp.load_file("/nonexistent")
218 assert cp.count() == 1
219
220
221def test_configure(tdata):

Callers

nothing calls this directly

Calls 5

load_fileMethod · 0.95
countMethod · 0.95
ClientPlaybackClass · 0.90
contextMethod · 0.80
pathMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…