Fix log tests

This commit is contained in:
Micah Lee 2021-04-12 15:42:16 -04:00
parent cf1debbf3c
commit 5cf8ef180e
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -241,5 +241,11 @@ class TestLog:
output = buf.getvalue()
line_one, line_two, _ = output.split("\n")
assert line_one == "[Jun 06 2013 11:05:00] TestModule.dummy_func"
assert line_two == "[Jun 06 2013 11:05:00] TestModule.dummy_func: TEST_MSG"
assert (
"[Jun 06 2013 11:05:00]" in line_one and "TestModule.dummy_func" in line_one
)
assert (
"[Jun 06 2013 11:05:00]" in line_two
and "TestModule.dummy_func" in line_two
and "TEST_MSG" in line_two
)