def test_get_file_content(self):
request = Request(Environ())
stream = _io.BytesIO("hello world".encode())
request.files = {"file": FileStorage(stream=stream, filename="foo")}
self.assertEqual("hello world", BaseHandler._get_file_content(request).decode())
test_base_handler.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录