api_tests.py 文件源码

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

项目:birdseye-server 作者: DramaticLiberty 项目源码 文件源码
def assert_error(code, response):
    nt.assert_equal(response.status_code, code)
    nt.assert_equal(response.content_type, 'application/json')
    jr = json.loads(response.get_data(as_text=True))
    nt.assert_equal(jr['status'], 'error')
    nt.assert_is_not_none(jr['message'])
    return jr
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号