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

Method test_unbind_fail

tests/test_base.py:111–116  ·  view source on GitHub ↗

unbind() raises KeyError if the key is missing.

(self)

Source from the content-addressed store, hash-verified

109 assert {} == b._context
110
111 def test_unbind_fail(self):
112 """
113 unbind() raises KeyError if the key is missing.
114 """
115 with pytest.raises(KeyError):
116 build_bl().bind(x=42, y=23).unbind("x", "z")
117
118 def test_try_unbind(self):
119 """

Callers

nothing calls this directly

Calls 3

build_blFunction · 0.70
unbindMethod · 0.45
bindMethod · 0.45

Tested by

no test coverage detected