#NEWLINE# def test_all_pools_shutdown( self ) : #NEWLINE# #INDENT# session = self . make_basic_session ( ) #NEWLINE# session . _load_balancer . make_query_plan . return_value = [ 'ip1' , 'ip2' ] #NEWLINE# session . _pools . get . return_value . is_shutdown = True #NEWLINE# rf = ResponseFuture ( session , Mock ( ) , Mock ( ) , 1 ) #NEWLINE# rf . send_request ( ) #NEWLINE# self . assertRaises ( NoHostAvailable , session . result )