MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_varargs

Method test_varargs

test/mitmproxy/test_command.py:93–99  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

91 assert command.Command(cm, "invalidarg", a.invalidarg)
92
93 def test_varargs(self):
94 with taddons.context() as tctx:
95 cm = command.CommandManager(tctx.master)
96 a = TAddon()
97 c = command.Command(cm, "varargs", a.varargs)
98 assert c.signature_help() == "varargs one *var -> str[]"
99 assert c.call(["one", "two", "three"]) == ["two", "three"]
100
101 def test_call(self):
102 with taddons.context() as tctx:

Callers

nothing calls this directly

Calls 4

signature_helpMethod · 0.95
callMethod · 0.95
contextMethod · 0.80
TAddonClass · 0.70

Tested by

no test coverage detected