diff --git a/tests/snippets/test_logging.py b/tests/snippets/test_logging.py index ee1ac2498..035640462 100644 --- a/tests/snippets/test_logging.py +++ b/tests/snippets/test_logging.py @@ -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)