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

Method test_copying

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

Source from the content-addressed store, hash-verified

713 assert headers == self.storage_class([("X-Bar", "1")])
714
715 def test_copying(self):
716 a = self.storage_class([("foo", "bar")])
717 b = a.copy()
718 a.add("foo", "baz")
719 assert a.getlist("foo") == ["bar", "baz"]
720 assert b.getlist("foo") == ["bar"]
721
722 def test_popping(self):
723 headers = self.storage_class([("a", 1)])

Callers

nothing calls this directly

Calls 3

copyMethod · 0.45
addMethod · 0.45
getlistMethod · 0.45

Tested by

no test coverage detected