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

Function test_columnize_medium

IPython/utils/tests/test_text.py:80–86  ·  view source on GitHub ↗

Test with inputs than shouldn't be wider than 80

()

Source from the content-addressed store, hash-verified

78 assert False, "row_first={0}".format(row_first)
79
80def test_columnize_medium():
81 """Test with inputs than shouldn't be wider than 80"""
82 size = 40
83 items = [l*size for l in 'abc']
84 for row_first in [True, False]:
85 out = text.columnize(items, row_first=row_first, displaywidth=80)
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"""

Callers

nothing calls this directly

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected