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

Function test_columnize_long

IPython/utils/tests/test_text.py:88–94  ·  view source on GitHub ↗

Test columnize with inputs longer than the display window

()

Source from the content-addressed store, hash-verified

86 nt.assert_equal(out, '\n'.join(items+['']), "row_first={0}".format(row_first))
87
88def test_columnize_long():
89 """Test columnize with inputs longer than the display window"""
90 size = 11
91 items = [l*size for l in 'abc']
92 for row_first in [True, False]:
93 out = text.columnize(items, row_first=row_first, displaywidth=size-1)
94 nt.assert_equal(out, '\n'.join(items+['']), "row_first={0}".format(row_first))
95
96def eval_formatter_check(f):
97 ns = dict(n=12, pi=math.pi, stuff='hello there', os=os, u=u"café", b="café")

Callers

nothing calls this directly

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected