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

Method test_try_unbind_fail

tests/test_base.py:126–132  ·  view source on GitHub ↗

try_unbind() does nothing if the key is missing.

(self)

Source from the content-addressed store, hash-verified

124 assert {} == b._context
125
126 def test_try_unbind_fail(self):
127 """
128 try_unbind() does nothing if the key is missing.
129 """
130 b = build_bl().bind(x=42, y=23).try_unbind("x", "z")
131
132 assert {"y": 23} == b._context
133
134
135class TestProcessing:

Callers

nothing calls this directly

Calls 3

build_blFunction · 0.70
try_unbindMethod · 0.45
bindMethod · 0.45

Tested by

no test coverage detected