#NEWLINE# @ mock . patch ( ( HEAT_STACKS + '._list_stacks' ) ) #NEWLINE# def test_list_stack_and_resources( self , mock__list_stacks ) : #NEWLINE# #INDENT# stack = mock . Mock ( ) #NEWLINE# mock__list_stacks . return_value = [ stack ] #NEWLINE# heat_scenario = stacks . HeatStacks ( self . context ) #NEWLINE# heat_scenario . list_stacks_and_resources ( ) #NEWLINE# self . clients ( 'heat' ) . resources . list . assert_called_once_with ( stack . id ) #NEWLINE# self . _test_atomic_action_timer ( heat_scenario . atomic_actions ( ) , 'heat.list_resources_of_1_stacks' )