MCPcopy
hub / github.com/django/django / test_urlencode_int

Method test_urlencode_int

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

Source from the content-addressed store, hash-verified

125 self.assertEqual(q.urlencode(safe="/"), "next=/t%C3%ABst%26key/")
126
127 def test_urlencode_int(self):
128 # Normally QueryDict doesn't contain non-string values but lazily
129 # written tests may make that mistake.
130 q = QueryDict(mutable=True)
131 q["a"] = 1
132 self.assertEqual(q.urlencode(), "a=1")
133
134 def test_mutable_copy(self):
135 """A copy of a QueryDict is mutable."""

Callers

nothing calls this directly

Calls 2

urlencodeMethod · 0.95
QueryDictClass · 0.90

Tested by

no test coverage detected