(self)
| 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")]) |