Searched refs:assertLogs (Results 1 – 9 of 9) sorted by relevance
/third_party/python/Lib/unittest/test/ |
D | test_case.py | 1618 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/ |
D | case.py | 774 def assertLogs(self, logger=None, level=None): member in TestCase
|
/third_party/python/Doc/library/ |
D | unittest.rst | 954 …| :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/ |
D | 3.10.0a2.rst | 458 Fix bug where TestCase.assertLogs doesn't correctly filter messages by
|
D | 3.9.0a6.rst | 377 when the :meth:`~unittest.TestCase.assertLogs` assertion is used.
|
/third_party/python/Lib/test/ |
D | test_concurrent_futures.py | 287 with self.assertLogs('concurrent.futures', 'CRITICAL') as cm:
|
/third_party/python/Doc/whatsnew/ |
D | 3.10.rst | 1470 existing :meth:`~unittest.TestCase.assertLogs`. (Contributed by Kit Yan Choi
|
D | 3.4.rst | 1696 A new test assertion context-manager, :meth:`~unittest.TestCase.assertLogs`,
|
/third_party/python/Misc/ |
D | HISTORY | 3974 - Issue #18937: Add an assertLogs() context manager to unittest.TestCase
|