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

Function test_pretty_environ

IPython/lib/tests/test_pretty.py:430–435  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

428
429
430def test_pretty_environ():
431 dict_repr = pretty.pretty(dict(os.environ))
432 # reindent to align with 'environ' prefix
433 dict_indented = dict_repr.replace('\n', '\n' + (' ' * len('environ')))
434 env_repr = pretty.pretty(os.environ)
435 nt.assert_equal(env_repr, 'environ' + dict_indented)
436
437
438def test_function_pretty():

Callers

nothing calls this directly

Calls 1

prettyMethod · 0.80

Tested by

no test coverage detected