#NEWLINE# @ classmethod #NEWLINE# def _getUrlForTestFile( cls , size = None ) : #NEWLINE# #INDENT# from toil.jobStores.azureJobStore import _fetchAzureAccountKey #NEWLINE# fileName = ( 'testfile_%s' % uuid . uuid4 ( ) ) #NEWLINE# containerName = cls . _externalStore ( ) #NEWLINE# url = ( 'wasb://%s@%s.blob.core.windows.net/%s' % ( containerName , cls . accountName , fileName ) ) #NEWLINE# if ( size is None ) : #NEWLINE# #INDENT# return url #NEWLINE# #UNINDENT# blobService = BlobService ( account_key = _fetchAzureAccountKey ( cls . accountName ) , account_name = cls . accountName ) #NEWLINE# content = os . urandom ( blobService ) #NEWLINE# blobService . put_block_blob_from_text ( containerName , fileName , content ) #NEWLINE# return ( url , hashlib . md5 ( content ) . hexdigest ( ) )