diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-10-18 14:32:49 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-10-18 14:32:49 -0400 |
commit | 6a8af758ffd4c0f06812ca52abe5ddd1d8891bd9 (patch) | |
tree | d78fbd91f9ea106730bce9bb6390347cf003d51f /tests | |
parent | aad1219701140498187723b40f4da5606ace800d (diff) | |
download | cmd2-git-6a8af758ffd4c0f06812ca52abe5ddd1d8891bd9.tar.gz |
Deleted Cmd.colorize() method and Cmd._colorcodes dictionary which were deprecated in 0.9.5
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_cmd2.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index de1ed76a..2dd08ff7 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -855,16 +855,6 @@ now: True assert str(err).startswith('Traceback (most recent call last):') -def test_base_colorize(base_app): - # If using base_app test fixture it won't get colorized because we replaced self.stdout - color_test = base_app.colorize('Test', 'red') - assert color_test == 'Test' - - # But if we create a fresh Cmd() instance, it will - fresh_app = cmd2.Cmd() - color_test = fresh_app.colorize('Test', 'red') - assert color_test == '\x1b[31mTest\x1b[39m' - def _expected_no_editor_error(): expected_exception = 'OSError' # If PyPy, expect a different exception than with Python 3 |