コード例 #1
0
def test_dft_formatter_colour_time():
    f = DefaultFormatter()
    f.stream_is_tty = True
    assert f.format(_mk_record(
        '[time] testing')) == '\x1b[35m[time]\x1b[0m\x1b[32m testing\x1b[0m'
コード例 #2
0
def test_dft_formatter():
    f = DefaultFormatter()
    assert f.format(_mk_record('testing')) == 'testing'