def test_output_black_on_white_foreground():

    io = StringIO()
    couleur.proxy(io).enable()
    io.write("#{black}#{on:white}Hello Black!\n")
    assert_equals('\033[30;47mHello Black!\n', io.getvalue())
    couleur.proxy(io).disable()
    io.seek(0)
    io.truncate()
    io.write("#{black}should not be translated\n")
    assert_equals('#{black}should not be translated\n', io.getvalue())
file-like filter output: black foreground on white background
dataset/ETHPy150Open gabrielfalcao/couleur/test_file_filter.py/test_output_black_on_white_foreground