test_cloud.py 文件源码

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

项目:cloudstrype 作者: btimby 项目源码 文件源码
def test_upload(self):
        # Box requires the file id in the URL, the file_id is assigned by Box,
        # and therefore is stored in ChunkStorage.attrs.
        httpretty.register_uri(
            httpretty.POST,
            BoxAPIClient.UPLOAD_URL[1].format(file_id='abc123'),
            body='{"entries": [{"id":1}]}', content_type='application/json')

        self.client.upload(self.chunk, TEST_CHUNK_BODY)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号