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

Function test_indentation

tests/test_pretty.py:85–91  ·  view source on GitHub ↗

Test correct indentation in groups

()

Source from the content-addressed store, hash-verified

83
84
85def test_indentation():
86 """Test correct indentation in groups"""
87 count = 40
88 gotoutput = pretty.pretty(MyList(range(count)))
89 expectedoutput = "MyList(\n" + ",\n".join(" %d" % i for i in range(count)) + ")"
90
91 assert gotoutput == expectedoutput
92
93
94def test_dispatch():

Callers

nothing calls this directly

Calls 2

MyListClass · 0.85
prettyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…