def test_get_wrapped_row_given_empty_returns_empty(): assert [] == Table.get_wrapped_row([], [])
def test_get_wrapped_row_given_row_of_data_returns_wrapped_rows(): expected_wrapped_row = [(long_text[:5], long_text[5:10], '')] rows = Table.get_wrapped_row([long_text[:10]], [5]) assert rows == expected_wrapped_row
def test_get_wrapped_row_given_row_of_data_returns_wrapped_rows(): expected_wrapped_row = [(long_text[:10], ), (long_text[:5], ), (long_text[:25], )] rows = Table.get_wrapped_row( [long_text[:10], long_text[:5], long_text[:25]], [100, 100, 100]) assert rows == expected_wrapped_row