MCPcopy
hub / github.com/django/django / test_missing_key

Method test_missing_key

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

Source from the content-addressed store, hash-verified

34 self.assertEqual(QueryDict(), QueryDict(""))
35
36 def test_missing_key(self):
37 q = QueryDict()
38 with self.assertRaises(KeyError):
39 q.__getitem__("foo")
40
41 def test_immutability(self):
42 q = QueryDict()

Callers

nothing calls this directly

Calls 2

QueryDictClass · 0.90
__getitem__Method · 0.45

Tested by

no test coverage detected