summaryrefslogtreecommitdiff
path: root/tests/test_ansi.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-12-19 16:04:06 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-12-19 16:04:06 -0500
commit801bab847341fb9a35d10f1d0b4a629a4fc8f14c (patch)
tree889c2d21f0922e68b0c880a6c0c9b3e83c307cd1 /tests/test_ansi.py
parente13fc34e6f7d9e67422595411b62ff12b8bf769b (diff)
downloadcmd2-git-801bab847341fb9a35d10f1d0b4a629a4fc8f14c.tar.gz
Changed allow_ansi to allow_style for accuracy in what types of ANSI escape sequences are handled
Diffstat (limited to 'tests/test_ansi.py')
-rw-r--r--tests/test_ansi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_ansi.py b/tests/test_ansi.py
index 056bb2db..4f7ab652 100644
--- a/tests/test_ansi.py
+++ b/tests/test_ansi.py
@@ -10,11 +10,11 @@ import cmd2.ansi as ansi
HELLO_WORLD = 'Hello, world!'
-def test_strip_ansi():
+def test_strip_style():
base_str = HELLO_WORLD
ansi_str = ansi.style(base_str, fg='green')
assert base_str != ansi_str
- assert base_str == ansi.strip_ansi(ansi_str)
+ assert base_str == ansi.strip_style(ansi_str)
def test_ansi_safe_wcswidth():