#NEWLINE# def test_updating_slave_to_setup_completed_state_should_tell_build_to_begin_subjob_execution( self ) : #NEWLINE# #INDENT# master = ClusterMaster ( ) #NEWLINE# fake_build = MagicMock ( spec_set = Build ) #NEWLINE# master . get_build = MagicMock ( return_value = fake_build ) #NEWLINE# slave_url = 'raphael.turtles.gov' #NEWLINE# master . connect_slave ( slave_url , 10 ) #NEWLINE# slave = master . get_slave ( slave_url = slave_url ) #NEWLINE# mock_scheduler = self . mock_scheduler_pool . get ( fake_build ) #NEWLINE# master . handle_slave_state_update ( slave , SlaveState . SETUP_COMPLETED ) #NEWLINE# mock_scheduler . begin_subjob_executions_on_slave . assert_called_once_with ( slave )