Esempio n. 1
0
def test_created_log_entry_render_returns_no_timestamp_for_verbosity_lesser_than_2():
    entry = LogEntry("message")
    assert re.match(r'^message$', entry.render(0))
Esempio n. 2
0
def test_created_log_entry_render_returns_timestamp_for_verbosity_greater_than_1():
    entry = LogEntry("message")
    assert re.match(r'^\[(.+)\] message$', entry.render(2))