MCPcopy
hub / github.com/pallets/werkzeug / test_setlistdefault

Method test_setlistdefault

tests/test_datastructures.py:411–415  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

409 md.popitem()
410
411 def test_setlistdefault(self):
412 md = self.storage_class()
413 assert md.setlistdefault("u", [-1, -2]) == [-1, -2]
414 assert md.getlist("u") == [-1, -2]
415 assert md["u"] == -1
416
417 def test_iter_interfaces(self):
418 mapping = [

Callers

nothing calls this directly

Calls 2

setlistdefaultMethod · 0.45
getlistMethod · 0.45

Tested by

no test coverage detected