MCPcopy
hub / github.com/django/django / test_dict

Method test_dict

tests/utils_tests/test_http.py:37–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35 self.assertEqual(urlencode((("a", 1), ("b", 2), ("c", 3))), "a=1&b=2&c=3")
36
37 def test_dict(self):
38 result = urlencode({"a": 1, "b": 2, "c": 3})
39 self.assertEqual(result, "a=1&b=2&c=3")
40
41 def test_dict_containing_sequence_not_doseq(self):
42 self.assertEqual(urlencode({"a": [1, 2]}, doseq=False), "a=%5B1%2C+2%5D")

Callers

nothing calls this directly

Calls 1

urlencodeFunction · 0.90

Tested by

no test coverage detected