MCPcopy Index your code
hub / github.com/ipython/ipython / test_lookup

Function test_lookup

tests/test_formatters.py:194–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

192
193
194def test_lookup():
195 f = PlainTextFormatter()
196
197 f.for_type(C, foo_printer)
198 assert f.lookup(C()) is foo_printer
199 with pytest.raises(KeyError):
200 f.lookup(A())
201
202
203def test_lookup_string():

Callers

nothing calls this directly

Calls 5

PlainTextFormatterClass · 0.90
for_typeMethod · 0.80
lookupMethod · 0.80
CClass · 0.70
AClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…