diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2021-03-02 09:46:28 -0500 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2021-03-02 09:46:28 -0500 |
commit | 6b14aa6579d9c5bdd32bf8c3d67f11db8b575bb0 (patch) | |
tree | 9fb1943c792e2d35fda3d02ae853d41f8ce8c917 /tests/test_table_creator.py | |
parent | d4035b43d3a7edda50908f2e6bb090381831975d (diff) | |
download | cmd2-git-6b14aa6579d9c5bdd32bf8c3d67f11db8b575bb0.tar.gz |
Moved empty line check in table creator
Diffstat (limited to 'tests/test_table_creator.py')
-rw-r--r-- | tests/test_table_creator.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_table_creator.py b/tests/test_table_creator.py index 396016eb..ee15bb22 100644 --- a/tests/test_table_creator.py +++ b/tests/test_table_creator.py @@ -133,6 +133,14 @@ def test_blank_last_line(): assert row == ('my line \n' ' ') + row_data = ['\n'] + row = tc.generate_row(row_data=row_data) + assert row == ' ' + + row_data = [''] + row = tc.generate_row(row_data=row_data) + assert row == ' ' + def test_wrap_text(): column_1 = Column("Col 1", width=10) |