MCPcopy Create free account
hub / github.com/RustPython/RustPython / test_custom

Method test_custom

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

Source from the content-addressed store, hash-verified

4874 self.assertEqual('onetwo', f.format(self.records))
4875
4876 def test_custom(self):
4877 f = TestBufferingFormatter()
4878 self.assertEqual('[(2)onetwo(2)]', f.format(self.records))
4879 lf = logging.Formatter('<%(message)s>')
4880 f = TestBufferingFormatter(lf)
4881 self.assertEqual('[(2)<one><two>(2)]', f.format(self.records))
4882
4883class ExceptionTest(BaseTest):
4884 def test_formatting(self):

Callers

nothing calls this directly

Calls 3

assertEqualMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected