test_json_resource.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:aspen.py 作者: AspenWeb 项目源码 文件源码
def test_json_handles_unicode(harness):
    expected = b'''{
    "Greetings": "\u00b5"
}'''
    actual = harness.simple('''
        from six import unichr
        [---]
        [---] application/json
        {'Greetings': unichr(181)}
    ''', filepath="foo.json.spt").body
    assert actual == expected
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号