Home
last modified time | relevance | path

Searched refs:assertLogs (Results 1 – 9 of 9) sorted by relevance

/third_party/python/Lib/unittest/test/
Dtest_case.py1618 with self.assertLogs() as cm:
1627 with self.assertLogs() as cm:
1638 with self.assertLogs(level=level) as cm:
1653 with self.assertLogs(level='DEBUG') as outer_cm:
1654 with self.assertLogs(logger, level='DEBUG') as cm:
1672 with self.assertLogs():
1679 with self.assertLogs(level='WARNING'):
1689 with self.assertLogs(level='WARNING'):
1697 with self.assertLogs('quux', level='ERROR'):
1699 with self.assertLogs('foo'):
[all …]
/third_party/python/Lib/unittest/
Dcase.py774 def assertLogs(self, logger=None, level=None): member in TestCase
/third_party/python/Doc/library/
Dunittest.rst954 …| :meth:`assertLogs(logger, level) | The ``with`` block logs on *logger* |…
955 …| <TestCase.assertLogs>` | with minimum *level* |…
1090 .. method:: assertLogs(logger=None, level=None)
1124 with self.assertLogs('foo', level='INFO') as cm:
1146 Unlike :meth:`assertLogs`, nothing will be returned by the context
/third_party/python/Misc/NEWS.d/
D3.10.0a2.rst458 Fix bug where TestCase.assertLogs doesn't correctly filter messages by
D3.9.0a6.rst377 when the :meth:`~unittest.TestCase.assertLogs` assertion is used.
/third_party/python/Lib/test/
Dtest_concurrent_futures.py287 with self.assertLogs('concurrent.futures', 'CRITICAL') as cm:
/third_party/python/Doc/whatsnew/
D3.10.rst1470 existing :meth:`~unittest.TestCase.assertLogs`. (Contributed by Kit Yan Choi
D3.4.rst1696 A new test assertion context-manager, :meth:`~unittest.TestCase.assertLogs`,
/third_party/python/Misc/
DHISTORY3974 - Issue #18937: Add an assertLogs() context manager to unittest.TestCase