def test_download(self):
# Onedrive requires the path in the URL, we use the chunk's uid as
# path.
httpretty.register_uri(
httpretty.GET,
OnedriveAPIClient.DOWNLOAD_URL[1].format(path=self._get_path()),
body=TEST_CHUNK_BODY)
self.assertEqual(TEST_CHUNK_BODY, self.client.download(self.chunk))
评论列表
文章目录