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

Method test_extra_not_merged_by_default

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

Source from the content-addressed store, hash-verified

6008 self.assertEqual(record.foo, '1')
6009
6010 def test_extra_not_merged_by_default(self):
6011 self.adapter.critical('foo should NOT be here', extra={'foo': 'nope'})
6012 self.assertEqual(len(self.recording.records), 1)
6013 record = self.recording.records[0]
6014 self.assertNotHasAttr(record, 'foo')
6015
6016 def test_extra_merged(self):
6017 self.adapter = logging.LoggerAdapter(logger=self.logger,

Callers

nothing calls this directly

Calls 3

assertNotHasAttrMethod · 0.80
criticalMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected