#NEWLINE# @ patch ( 'prestoadmin.deploy.configure_presto' ) #NEWLINE# @ patch ( 'prestoadmin.deploy.util.get_coordinator_role' ) #NEWLINE# @ patch ( 'prestoadmin.deploy.env' ) #NEWLINE# def test_worker_is_coordinator( self , env_mock , coord_mock , configure_mock ) : #NEWLINE# #INDENT# env_mock . host = 'my.host' #NEWLINE# coord_mock . return_value = [ 'my.host' ] #NEWLINE# deploy . workers ( ) #NEWLINE# assert ( not configure_mock . called )