MCPcopy
hub / github.com/django/django / test_json_script_without_id

Method test_json_script_without_id

tests/utils_tests/test_html.py:315–319  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

313 )
314
315 def test_json_script_without_id(self):
316 self.assertHTMLEqual(
317 json_script({"key": "value"}),
318 '<script type="application/json">{"key": "value"}</script>',
319 )
320
321 def test_smart_urlquote(self):
322 items = (

Callers

nothing calls this directly

Calls 2

json_scriptFunction · 0.90
assertHTMLEqualMethod · 0.80

Tested by

no test coverage detected