MCPcopy
hub / github.com/pallets/flask / test_json_as_unicode

Function test_json_as_unicode

tests/test_json.py:51–54  ·  view source on GitHub ↗
(test_value, expected, app, app_ctx)

Source from the content-addressed store, hash-verified

49 "test_value,expected", [(True, '"\\u2603"'), (False, '"\u2603"')]
50)
51def test_json_as_unicode(test_value, expected, app, app_ctx):
52 app.json.ensure_ascii = test_value
53 rv = app.json.dumps("\N{SNOWMAN}")
54 assert rv == expected
55
56
57def test_json_dump_to_file(app, app_ctx):

Callers

nothing calls this directly

Calls 1

dumpsMethod · 0.45

Tested by

no test coverage detected