From 6a8af758ffd4c0f06812ca52abe5ddd1d8891bd9 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Thu, 18 Oct 2018 14:32:49 -0400 Subject: Deleted Cmd.colorize() method and Cmd._colorcodes dictionary which were deprecated in 0.9.5 --- tests/test_cmd2.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'tests') 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 -- cgit v1.2.1