def test_columnize_long():
 size = 11
 items = [(l * size) for l in 'abc']
 for row_first in [True, False]:
  out = text.columnize(items, row_first=row_first, displaywidth=(size - 1))
  nt.assert_equal(out, '\n'.join((items + [''])), 'row_first={0}'.format(row_first))

def test_columnize_long ( ) : size = 11 items = [ ( l * size ) for l in 'abc' ] for row_first in [ True , False ] : out = text . columnize ( items , row_first = row_first , displaywidth = ( size - 1 ) ) nt . assert_equal ( out , '\n' . join ( ( items + [ '' ] ) ) , 'row_first={0}' . format ( row_first ) )
test columnize with inputs longer than the display window .