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

Method test_unbind

tests/test_base.py:103–109  ·  view source on GitHub ↗

unbind() removes keys from context.

(self)

Source from the content-addressed store, hash-verified

101 assert isinstance(b.new(), Wrapper)
102
103 def test_unbind(self):
104 """
105 unbind() removes keys from context.
106 """
107 b = build_bl().bind(x=42, y=23).unbind("x", "y")
108
109 assert {} == b._context
110
111 def test_unbind_fail(self):
112 """

Callers

nothing calls this directly

Calls 3

build_blFunction · 0.70
unbindMethod · 0.45
bindMethod · 0.45

Tested by

no test coverage detected