MCPcopy Create free account
hub / github.com/hynek/structlog / test_proxies_to_correct_method

Method test_proxies_to_correct_method

tests/test_stdlib.py:203–209  ·  view source on GitHub ↗

The basic proxied methods are proxied to the correct counterparts.

(self, method_name)

Source from the content-addressed store, hash-verified

201 ["debug", "info", "warning", "error", "exception", "critical"],
202 )
203 def test_proxies_to_correct_method(self, method_name):
204 """
205 The basic proxied methods are proxied to the correct counterparts.
206 """
207 bl = BoundLogger(ReturnLogger(), [return_method_name], {})
208
209 assert method_name == getattr(bl, method_name)("event")
210
211 def test_proxies_to_correct_method_special_cases(self):
212 """

Callers

nothing calls this directly

Calls 2

BoundLoggerClass · 0.90
ReturnLoggerClass · 0.90

Tested by

no test coverage detected