コード例 #1
0
def test_in_color(color, code, text="some text"):
    assert in_color(color, text) == code + text + "\x1b[0m"
コード例 #2
0
ファイル: test_run.py プロジェクト: prah23/zulip-terminal
def test_in_color(color: str, code: str, text: str = "some text") -> None:
    assert in_color(color, text) == code + text + "\x1b[0m"