def test_download(self):
# GDrive requires the file id in the URL, the file_id is assigned by
# Google, and therefore is stored in ChunkStorage.attrs.
httpretty.register_uri(
httpretty.GET,
GDriveAPIClient.DOWNLOAD_URL[1].format(file_id='abc123'),
body=TEST_CHUNK_BODY)
self.assertEqual(TEST_CHUNK_BODY, self.client.download(self.chunk))
评论列表
文章目录