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

Method test_setlist

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

Source from the content-addressed store, hash-verified

789 h.extend({"x": "x"}, {"x": "x"})
790
791 def test_setlist(self):
792 h = self.storage_class([("a", "0"), ("b", "1"), ("c", "2")])
793 h.setlist("b", ["3", "4"])
794 assert h[1] == ("b", "3")
795 assert h[-1] == ("b", "4")
796 h.setlist("b", [])
797 assert "b" not in h
798 h.setlist("d", ["5"])
799 assert h["d"] == "5"
800
801 def test_setlistdefault(self):
802 h = self.storage_class([("a", "0"), ("b", "1"), ("c", "2")])

Callers

nothing calls this directly

Calls 1

setlistMethod · 0.45

Tested by

no test coverage detected