Test with inputs than shouldn't be wider than 80
()
| 78 | assert False, "row_first={0}".format(row_first) |
| 79 | |
| 80 | def 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 | |
| 88 | def test_columnize_long(): |
| 89 | """Test columnize with inputs longer than the display window""" |