(test_value, expected, app, app_ctx)
| 49 | "test_value,expected", [(True, '"\\u2603"'), (False, '"\u2603"')] |
| 50 | ) |
| 51 | def 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 | |
| 57 | def test_json_dump_to_file(app, app_ctx): |