#NEWLINE# def test_updating_slave_to_disconnected_state_should_mark_slave_as_dead( self ) : #NEWLINE# #INDENT# master = ClusterMaster ( ) #NEWLINE# slave_url = 'raphael.turtles.gov' #NEWLINE# master . connect_slave ( slave_url , num_executors = 10 ) #NEWLINE# slave = master . get_slave ( slave_url = slave_url ) #NEWLINE# self . assertTrue ( slave . is_alive ( ) ) #NEWLINE# master . handle_slave_state_update ( slave , SlaveState . DISCONNECTED ) #NEWLINE# self . assertFalse ( slave . is_alive ( ) )