MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_setter

Function test_setter

test/mitmproxy/test_optmanager.py:125–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123
124
125def test_setter():
126 o = TO()
127 f = o.setter("two")
128 f(99)
129 assert o.two == 99
130 with pytest.raises(Exception, match="No such option"):
131 o.setter("nonexistent")
132
133
134def test_toggler():

Callers

nothing calls this directly

Calls 3

TOClass · 0.70
fFunction · 0.50
setterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…