rich/tests/test_control.py
2020-05-14 20:15:31 +01:00

12 lines
355 B
Python

from rich.control import Control, strip_control_codes
def test_control():
control = Control("FOO")
assert str(control) == "FOO"
def test_strip_control_codes():
assert strip_control_codes("") == ""
assert strip_control_codes("foo\rbar") == "foobar"
assert strip_control_codes("Fear is the mind killer") == "Fear is the mind killer"