#NEWLINE# @ patch ( 'prestoadmin.deploy.deploy' ) #NEWLINE# @ patch ( 'prestoadmin.deploy.deploy_node_properties' ) #NEWLINE# def test_configure_presto( self , deploy_node_mock , deploy_mock ) : #NEWLINE# #INDENT# env . host = 'localhost' #NEWLINE# conf = { #NEWLINE# #INDENT# 'node.properties' : { #NEWLINE# #INDENT# 'key' : 'value' , #NEWLINE# #UNINDENT# } , #NEWLINE# 'jvm.config' : [ 'list' ] , #NEWLINE# #UNINDENT# } #NEWLINE# remote_dir = '/my/remote/dir' #NEWLINE# deploy . configure_presto ( conf , remote_dir ) #NEWLINE# deploy_mock . assert_called_with ( { #NEWLINE# #INDENT# 'jvm.config' : 'list' , #NEWLINE# #UNINDENT# } , remote_dir )