diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-06-27 13:37:53 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-06-27 13:37:53 -0400 |
commit | 212301954c0584ff250883784463c65252ced63d (patch) | |
tree | 39f165f3ec0037cfba790f8854ee6432896e51aa /tests/test_cmd2.py | |
parent | 0dbb4d208a51b15ca814c00d2eceb43436d15dc1 (diff) | |
download | cmd2-git-212301954c0584ff250883784463c65252ced63d.tar.gz |
Added unit tests for ansi.py
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r-- | tests/test_cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index f56555aa..c820292c 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -1457,7 +1457,7 @@ def test_poutput_none(outsim_app): expected = 'None\n' assert out == expected -def test_poutput_color_always(outsim_app): +def test_poutput_ansi_always(outsim_app): msg = 'Hello World' ansi.allow_ansi = ansi.ANSI_ALWAYS outsim_app.poutput(ansi.style(msg, fg='cyan')) @@ -1465,7 +1465,7 @@ def test_poutput_color_always(outsim_app): expected = Fore.CYAN + msg + Fore.RESET + '\n' assert out == expected -def test_poutput_color_never(outsim_app): +def test_poutput_ansi_never(outsim_app): msg = 'Hello World' ansi.allow_ansi = ansi.ANSI_NEVER outsim_app.poutput(ansi.style(msg, fg='cyan')) |