(self)
| 3521 | self.assertRaises(Exception, self.apply_config, self.config13) |
| 3522 | |
| 3523 | def test_config14_ok(self): |
| 3524 | with support.captured_stdout() as output: |
| 3525 | self.apply_config(self.config14) |
| 3526 | h = logging._handlers['hand1'] |
| 3527 | self.assertEqual(h.foo, 'bar') |
| 3528 | self.assertEqual(h.terminator, '!\n') |
| 3529 | logging.warning('Exclamation') |
| 3530 | self.assertTrue(output.getvalue().endswith('Exclamation!\n')) |
| 3531 | |
| 3532 | def test_config15_ok(self): |
| 3533 |
nothing calls this directly
no test coverage detected