def test_upload_file(self):
    remoteDataFolder = (self.remote_test_folder + '/Storage')
    localFile = 'Common/test_multi_pages.docx'
    remoteFileName = 'TestUploadFile.docx'
    request = asposewordscloud.models.requests.UploadFileRequest(file_content=open(os.path.join(self.local_test_folder, localFile), 'rb'), path=((remoteDataFolder + '/') + remoteFileName))
    result = self.words_api.upload_file(request)
    self.assertIsNotNone(result, 'Error has occurred.')
    self.assertIsNotNone(result.uploaded, 'Validate UploadFile response')
    self.assertEqual(1, len(result.uploaded))
    self.assertEqual('TestUploadFile.docx', result.uploaded[0])
def test_upload_file(self):
    remoteDataFolder = (self.remote_test_folder + '/Storage')
    localFile = 'Common/test_multi_pages.docx'
    remoteFileName = 'TestUploadFile.docx'
    request = asposewordscloud.models.requests.UploadFileRequest(file_content=open(os.path.join(self.local_test_folder, localFile), 'rb'), path=((remoteDataFolder + '/') + remoteFileName))
    result = self.words_api.upload_file(request)
    self.assertIsNotNone(result, 'Error has occurred.')
    self.assertIsNotNone(result.uploaded, 'Validate UploadFile response')
    self.assertEqual(1, len(result.uploaded))
    self.assertEqual('TestUploadFile.docx', result.uploaded[0])