예제 #1
0
def test_get_row_height_given_cell_equal_rows_returns_max_height():
    text_ = long_text[:10]
    assert Table.get_row_height([(text_, ), (text_, )]) == 1
예제 #2
0
def test_get_row_height_given_empty_returns_zero():
    assert Table.get_row_height([]) == 0
예제 #3
0
def test_get_row_height_given_cell_with_two_rows_returns_max_height():
    text_ = long_text[:10]
    assert Table.get_row_height([(text_, ), (text_, text_),
                                 (text_, text_, text_)]) == 3