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)
评论列表
文章目录