#NEWLINE# def test_synGet_sftpIntegration( ) : #NEWLINE# #INDENT# serverURL = ( 'sftp://ec2-54-212-85-156.us-west-2.compute.amazonaws.com/public/' + str ( uuid . uuid1 ( ) ) ) #NEWLINE# filepath = utils . make_bogus_binary_file ( ( ( 1 * MB ) - 777771 ) ) #NEWLINE# print ( '\n\tMade bogus file: ' , filepath ) #NEWLINE# url = syn . _sftpUploadFile ( filepath , url = serverURL ) #NEWLINE# file = syn . store ( File ( path = url , parent = project , synapseStore = False ) ) #NEWLINE# print ( '\nDownloading file' , os . getcwd ( ) , filepath ) #NEWLINE# junk = syn . get ( file , downloadLocation = os . getcwd ( ) , downloadFile = True ) #NEWLINE# filecmp . cmp ( filepath , junk . path )