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

Method testAssertNoLogsPerLevel

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

Source from the content-addressed store, hash-verified

1977 )
1978
1979 def testAssertNoLogsPerLevel(self):
1980 # Check per-level filtering
1981 with self.assertNoStderr():
1982 with self.assertNoLogs(level="ERROR"):
1983 log_foo.info("foo")
1984 log_quux.debug("1")
1985
1986 def testAssertNoLogsFailurePerLevel(self):
1987 # Failure due to unexpected logs at the specified level.

Callers

nothing calls this directly

Calls 4

assertNoStderrMethod · 0.95
assertNoLogsMethod · 0.80
infoMethod · 0.45
debugMethod · 0.45

Tested by

no test coverage detected