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

Function test_format_keyvals

test/mitmproxy/tools/console/test_common.py:24–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23
24def test_format_keyvals():
25 assert common.format_keyvals(
26 [
27 ("aa", "bb"),
28 ("cc", "dd"),
29 ("ee", None),
30 ]
31 )
32 wrapped = urwid.Pile(
33 urwid.SimpleFocusListWalker(common.format_keyvals([("foo", "bar")]))
34 )
35 assert wrapped.render((30,))
36 assert common.format_keyvals([("aa", wrapped)])
37
38
39def test_truncated_text():

Callers

nothing calls this directly

Calls 1

renderMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…