@pytest.mark.parametrize('cls', [AsciiTable, UnixTable])
def test_empty(cls):
    table = cls([])
    assert 2 == table.table_width
    assert table.ok is True

    table = cls([[]])
    assert 2 == table.table_width
    assert table.ok is True

    table = cls([['']])
    assert 4 == table.table_width
    assert table.ok is True

    table = cls([[' ']])
    assert 5 == table.table_width
    assert table.ok is True
Test on empty table.
dataset/ETHPy150Open Robpol86/terminaltables/tests/test_table_width_ok.py/test_empty