The opposite of assertWarns. Private due to low demand.
(self, expected_warning, *args, **kwargs)
| 845 | return context.handle('assertWarns', args, kwargs) |
| 846 | |
| 847 | def _assertNotWarns(self, expected_warning, *args, **kwargs): |
| 848 | """The opposite of assertWarns. Private due to low demand.""" |
| 849 | context = _AssertNotWarnsContext(expected_warning, self) |
| 850 | return context.handle('_assertNotWarns', args, kwargs) |
| 851 | |
| 852 | def assertLogs(self, logger=None, level=None, formatter=None): |
| 853 | """Fail unless a log message of level *level* or higher is emitted |