MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_config14_ok

Method test_config14_ok

Lib/test/test_logging.py:3523–3530  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

apply_configMethod · 0.95
assertTrueMethod · 0.80
assertEqualMethod · 0.45
warningMethod · 0.45
endswithMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected