MCPcopy
hub / github.com/django/django / test_fromkeys_with_nonempty_value

Method test_fromkeys_with_nonempty_value

tests/httpwrappers/tests.py:267–271  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

265 )
266
267 def test_fromkeys_with_nonempty_value(self):
268 self.assertEqual(
269 QueryDict.fromkeys(["key1", "key2", "key3"], value="val"),
270 QueryDict("key1=val&key2=val&key3=val"),
271 )
272
273 def test_fromkeys_is_immutable_by_default(self):
274 # Match behavior of __init__() which is also immutable by default.

Callers

nothing calls this directly

Calls 2

QueryDictClass · 0.90
fromkeysMethod · 0.80

Tested by

no test coverage detected