MCPcopy Create free account
hub / github.com/ipython/ipython / test_in_formatter

Function test_in_formatter

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

Source from the content-addressed store, hash-verified

187 nt.assert_in(C, f.type_printers)
188
189def test_in_formatter():
190 f = PlainTextFormatter()
191 f.for_type(C, foo_printer)
192 type_str = '%s.%s' % (C.__module__, 'C')
193 nt.assert_in(C, f)
194 nt.assert_in(type_str, f)
195
196def test_string_in_formatter():
197 f = PlainTextFormatter()

Callers

nothing calls this directly

Calls 2

PlainTextFormatterClass · 0.90
for_typeMethod · 0.80

Tested by

no test coverage detected