Check output of logger calls.

This commit is contained in:
Windel Bouwman committed 2019-07-11 17:48:10 +02:00
1 parent 140ad71f05
commit 2893780036
1 file changed
+5 -1
+5 -1
View File
@@ -10,5 +10,9 @@ import logging
logging.error('WOOT')
logging.warning('WARN')
print(f.getvalue())
res = f.getvalue()
assert 'WOOT' in res
assert 'WARN' in res
print(res)