def test_upload(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.POST,
GDriveAPIClient.UPLOAD_URL[1].format(file_id='abc123'),
body='{"id":1234}')
self.client.upload(self.chunk, TEST_CHUNK_BODY)
评论列表
文章目录