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

Method testAssertLogsPerLogger

Lib/test/test_unittest/test_case.py:1879–1881  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1877 self.assertEqual(outer_cm.output, ["WARNING:quux:3"])
1878
1879 def testAssertLogsPerLogger(self):
1880 self.checkAssertLogsPerLogger(logging.getLogger('foo'))
1881 self.checkAssertLogsPerLogger('foo')
1882
1883 def testAssertLogsFailureNoLogs(self):
1884 # Failure due to no logs

Callers

nothing calls this directly

Calls 2

getLoggerMethod · 0.80

Tested by

no test coverage detected