blob: d5683551d0914834e944f2384ca385aa6209b60d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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"
|