MCPcopy
hub / github.com/django/django / test_appendlist

Method test_appendlist

tests/utils_tests/test_datastructures.py:112–116  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

110 self.assertEqual(d.getlist("newkey"), ["Doe"])
111
112 def test_appendlist(self):
113 d = MultiValueDict()
114 d.appendlist("name", "Adrian")
115 d.appendlist("name", "Simon")
116 self.assertEqual(d.getlist("name"), ["Adrian", "Simon"])
117
118 def test_copy(self):
119 for copy_func in [copy.copy, lambda d: d.copy()]:

Callers

nothing calls this directly

Calls 3

appendlistMethod · 0.95
getlistMethod · 0.95
MultiValueDictClass · 0.90

Tested by

no test coverage detected