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'
def test_dft_formatter():
    f = DefaultFormatter()
    assert f.format(_mk_record('testing')) == 'testing'