#NEWLINE# def test_uninstall_when_server_down( self ) : #NEWLINE# #INDENT# self . setup_cluster ( NoHadoopBareImageProvider ( ) , self . STANDALONE_PRESTO_CLUSTER ) #NEWLINE# start_output = self . run_prestoadmin ( 'server start' ) #NEWLINE# process_per_host = self . get_process_per_host ( start_output . splitlines ( ) ) #NEWLINE# self . run_prestoadmin ( ( 'server stop -H %s' % self . cluster . internal_slaves [ 0 ] ) ) #NEWLINE# cmd_output = self . run_prestoadmin ( 'server uninstall' ) . splitlines ( ) #NEWLINE# self . assert_stopped ( container ) #NEWLINE# expected = ( uninstall_output + self . expected_stop ( not_running = [ self . cluster . internal_slaves [ 0 ] ] ) [ : ] ) #NEWLINE# self . assertRegexpMatchesLineByLine ( cmd_output , expected ) #NEWLINE# for container in self . cluster . all_hosts ( ) : #NEWLINE# #INDENT# self . assert_uninstalled_dirs_removed ( container )