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

Function test_indentation

IPython/lib/tests/test_pretty.py:77–83  ·  view source on GitHub ↗

Test correct indentation in groups

()

Source from the content-addressed store, hash-verified

75
76
77def test_indentation():
78 """Test correct indentation in groups"""
79 count = 40
80 gotoutput = pretty.pretty(MyList(range(count)))
81 expectedoutput = "MyList(\n" + ",\n".join(" %d" % i for i in range(count)) + ")"
82
83 nt.assert_equal(gotoutput, expectedoutput)
84
85
86def test_dispatch():

Callers

nothing calls this directly

Calls 2

MyListClass · 0.85
prettyMethod · 0.80

Tested by

no test coverage detected