def test_Files_getFileServicesNames(self): fileServiceNames = Files.getFileServicesNames() found = False for fileService in fileServiceNames: if fileService.get('name') == Files_FileServiceName: found = True self.assertTrue(found)
token1 = Authentication.login(Authentication_loginName, Authentication_loginPassword); # In[ ]: # get available FileServices fileServices = Files.getFileServices(); print(fileServices) # In[ ]: # get names of file services available to the user. fileServiceNames = Files.getFileServicesNames(); print(fileServiceNames) # In[ ]: # get FileService from Name fileService = Files.getFileServiceFromName(Files_FileServiceName); print(fileService) # In[ ]: # get the API endpoint URL of a FileService
def test_Files_getFileServicesNames(self): fileServiceNames = Files.getFileServicesNames() self.assertTrue(fileServiceNames.__len__() > 0)