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

Method test_try_unbind

tests/test_base.py:118–124  ·  view source on GitHub ↗

try_unbind() removes keys from context.

(self)

Source from the content-addressed store, hash-verified

116 build_bl().bind(x=42, y=23).unbind("x", "z")
117
118 def test_try_unbind(self):
119 """
120 try_unbind() removes keys from context.
121 """
122 b = build_bl().bind(x=42, y=23).try_unbind("x", "y")
123
124 assert {} == b._context
125
126 def test_try_unbind_fail(self):
127 """

Callers

nothing calls this directly

Calls 3

build_blFunction · 0.70
try_unbindMethod · 0.45
bindMethod · 0.45

Tested by

no test coverage detected