MCPcopy
hub / github.com/urllib3/urllib3 / test_discard

Method test_discard

test/test_collections.py:371–374  ·  view source on GitHub ↗
(self, d: HTTPHeaderDict)

Source from the content-addressed store, hash-verified

369 assert dummy is d.pop(key, dummy)
370
371 def test_discard(self, d: HTTPHeaderDict) -> None:
372 d.discard("cookie")
373 assert "cookie" not in d
374 d.discard("cookie")
375
376 def test_len(self, d: HTTPHeaderDict) -> None:
377 assert len(d) == 1

Callers

nothing calls this directly

Calls 1

discardMethod · 0.80

Tested by

no test coverage detected