mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-07 06:13:03 -04:00
Fix log tests
This commit is contained in:
parent
f30dfda92d
commit
c1d1462299
1 changed files with 8 additions and 2 deletions
|
@ -241,5 +241,11 @@ class TestLog:
|
||||||
output = buf.getvalue()
|
output = buf.getvalue()
|
||||||
|
|
||||||
line_one, line_two, _ = output.split("\n")
|
line_one, line_two, _ = output.split("\n")
|
||||||
assert line_one == "[Jun 06 2013 11:05:00] TestModule.dummy_func"
|
assert (
|
||||||
assert line_two == "[Jun 06 2013 11:05:00] TestModule.dummy_func: TEST_MSG"
|
"[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
|
||||||
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue