#NEWLINE# @ mock . patch ( ( HEAT_STACKS + '._stack_list_output_via_API' ) ) #NEWLINE# @ mock . patch ( ( HEAT_STACKS + '._create_stack' ) ) #NEWLINE# def test_create_and_list_output_via_API( self , mock__create_stack , mock__stack_list_output_via_api ) : #NEWLINE# #INDENT# heat_scenario = stacks . HeatStacks ( self . context ) #NEWLINE# heat_scenario . create_stack_and_list_output_via_API ( template_path = self . default_template , parameters = self . default_parameters , files = self . default_files , environment = heat_scenario . default_environment ) #NEWLINE# mock__create_stack . assert_called_once_with ( self . default_template , self . default_parameters , self . default_files , self . default_environment ) #NEWLINE# mock__stack_list_output_via_api . assert_called_once_with ( mock__create_stack . return_value )