Robert Collins added the comment:
I don't know if or when it was moved, but right now:
./python -m pydoc unittest.case.TestCase.assertLogs
... the docs for it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24193
Michael Foord added the comment:
assertLogs is on a Python test suite helper, not TestCase itself.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24193
___
Robert Collins added the comment:
Parameters please, TestCase has nothing to do with this - it really shouldn't
even have the method.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24193
New submission from Berker Peksag:
It would be useful if we could change the logging format of assertLogs when we
use it:
with self.assertLogs('foo', level='INFO', format='%(message)s') as cm:
logging.getLogger('foo').info('first message')
self.assertEqual(cm.output, ['first