is_enabled_for is a snake_case alias that delegates to the wrapped logger's isEnabledFor, for compatibility with FilteringBoundLogger.
(self)
| 304 | assert called_stdlib_method[0] is True |
| 305 | |
| 306 | def test_is_enabled_for(self): |
| 307 | """ |
| 308 | is_enabled_for is a snake_case alias that delegates to the wrapped |
| 309 | logger's isEnabledFor, for compatibility with FilteringBoundLogger. |
| 310 | """ |
| 311 | stdlib_logger = logging.getLogger("test_is_enabled_for") |
| 312 | stdlib_logger.setLevel(WARN) |
| 313 | bl = BoundLogger(stdlib_logger, [], {}) |
| 314 | |
| 315 | assert bl.is_enabled_for(WARN) is True |
| 316 | assert bl.is_enabled_for(DEBUG) is False |
| 317 | |
| 318 | def test_get_effective_level(self): |
| 319 | """ |
nothing calls this directly
no test coverage detected