[issue18937] add unittest assertion for logging

Michael Foord report at bugs.python.org
Sat Sep 7 00:54:05 CEST 2013


Michael Foord added the comment:

So making assertions about logging is very common, but I *always* do this by just mocking out the logger and making an assertion about the call. It's trivially easy to do.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18937>
_______________________________________


More information about the Python-bugs-list mailing list