MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_set

Function test_set

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

Source from the content-addressed store, hash-verified

7
8
9def test_set():
10 sa = core.Core()
11 with taddons.context(loadcore=False) as tctx:
12 assert tctx.master.options.upstream_cert
13 tctx.command(sa.set, "upstream_cert", "false")
14 assert not tctx.master.options.upstream_cert
15
16 with pytest.raises(exceptions.CommandError):
17 tctx.command(sa.set, "nonexistent")
18
19
20def test_resume():

Callers

nothing calls this directly

Calls 2

contextMethod · 0.80
commandMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…