def test_fault_has_status_int(self):
# Ensure the status_int is set correctly on faults.
fault = wsgi.Fault(webob.exc.HTTPBadRequest(explanation='what?'))
self.assertEqual(fault.status_int, 400)
test_faults.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录