MCPcopy Index your code
hub / github.com/python/cpython / test_formatter_not_given

Method test_formatter_not_given

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

Source from the content-addressed store, hash-verified

5762 self.assertEqual(mock_formatter_init.call_count, 0)
5763
5764 def test_formatter_not_given(self):
5765 mock_handler = Mock(formatter=None)
5766 with patch("logging.Formatter") as mock_formatter_init:
5767 logging.basicConfig(handlers=[mock_handler])
5768 self.assertEqual(mock_formatter_init.call_count, 1)
5769
5770 @support.requires_working_socket()
5771 def test_log_taskName(self):

Callers

nothing calls this directly

Calls 3

MockClass · 0.90
patchFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected