

def test_colorless_run(self, capsys):
    colors.use_color = 0
    (_, rc) = SimpleApp.run(['SimpleApp'], exit=False)
    assert (capsys.readouterr()[0] == 'lalala\n')
    colors.use_color = 4
    (_, rc) = SimpleApp.run(['SimpleApp'], exit=False)
    assert (capsys.readouterr()[0] == 'lalala\n')

dataset/ETHPy150Open tomerfiliba/plumbum/tests/test_clicolor.py TestSimpleApp.test_colorless_run/original