MCPcopy
hub / github.com/django/django / test_update_from_querydict

Method test_update_from_querydict

tests/httpwrappers/tests.py:242–247  ·  view source on GitHub ↗

Regression test for #8278: QueryDict.update(QueryDict)

(self)

Source from the content-addressed store, hash-verified

240 self.assertEqual(q, q1)
241
242 def test_update_from_querydict(self):
243 """Regression test for #8278: QueryDict.update(QueryDict)"""
244 x = QueryDict("a=1&a=2", mutable=True)
245 y = QueryDict("a=3&a=4")
246 x.update(y)
247 self.assertEqual(x.getlist("a"), ["1", "2", "3", "4"])
248
249 def test_non_default_encoding(self):
250 """#13572 - QueryDict with a non-default encoding"""

Callers

nothing calls this directly

Calls 3

QueryDictClass · 0.90
updateMethod · 0.45
getlistMethod · 0.45

Tested by

no test coverage detected