Test columnize with inputs longer than the display window
()
| 86 | nt.assert_equal(out, '\n'.join(items+['']), "row_first={0}".format(row_first)) |
| 87 | |
| 88 | def 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 | |
| 96 | def eval_formatter_check(f): |
| 97 | ns = dict(n=12, pi=math.pi, stuff='hello there', os=os, u=u"café", b="café") |