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

Method test_custom

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

Source from the content-addressed store, hash-verified

4963 self.assertEqual('onetwo', f.format(self.records))
4964
4965 def test_custom(self):
4966 f = TestBufferingFormatter()
4967 self.assertEqual('[(2)onetwo(2)]', f.format(self.records))
4968 lf = logging.Formatter('<%(message)s>')
4969 f = TestBufferingFormatter(lf)
4970 self.assertEqual('[(2)<one><two>(2)]', f.format(self.records))
4971
4972class ExceptionTest(BaseTest):
4973 def test_formatting(self):

Callers

nothing calls this directly

Calls 3

assertEqualMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected