#NEWLINE# @ patch ( 'prestoadmin.deploy.w.Worker' ) #NEWLINE# @ patch ( 'prestoadmin.deploy.configure_presto' ) #NEWLINE# def test_worker_not_coordinator( self , configure_mock , get_conf_mock ) : #NEWLINE# #INDENT# env . host = 'my.host1' #NEWLINE# env . roledefs [ 'worker' ] = [ 'my.host1' ] #NEWLINE# env . roledefs [ 'coordinator' ] = [ 'my.host2' ] #NEWLINE# deploy . workers ( ) #NEWLINE# assert configure_mock . called