@with_setup(prepare_stderr)
def test_output_green_and_red_on_white_foreground():

    couleur.proxy(sys.stderr).enable()
    sys.stderr.write("#{green}Hello #{white}#{on:red}Italy!\n")
    assert_stderr('\033[32mHello \033[37;41mItaly!\n')
    couleur.proxy(sys.stderr).disable()
    sys.stderr.write("#{black}should not be translated\n")
    assert_stderr('#{black}should not be translated\n')
STDERR filter output: green foreground and white on red background
dataset/ETHPy150Open gabrielfalcao/couleur/test_stderr_filter.py/test_output_green_and_red_on_white_foreground