def test_download(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.GET,
BoxAPIClient.DOWNLOAD_URL[1].format(file_id='abc123'),
body=TEST_CHUNK_BODY)
self.assertEqual(TEST_CHUNK_BODY, self.client.download(self.chunk))
评论列表
文章目录