示例#1
0
def test_in_color(color, code, text="some text"):
    assert in_color(color, text) == code + text + "\x1b[0m"
示例#2
0
def test_in_color(color: str, code: str, text: str = "some text") -> None:
    assert in_color(color, text) == code + text + "\x1b[0m"