#NEWLINE# def test_create_stack_and_scale( self ) : #NEWLINE# #INDENT# heat_scenario = stacks . HeatStacks ( self . context ) #NEWLINE# stack = mock . Mock ( ) #NEWLINE# heat_scenario . _create_stack = mock . Mock ( return_value = stack ) #NEWLINE# heat_scenario . _scale_stack = mock . Mock ( ) #NEWLINE# heat_scenario . create_stack_and_scale ( self . default_template , 'key' , ( - 1 ) , parameters = self . default_parameters , files = self . default_files , environment = self . default_environment ) #NEWLINE# heat_scenario . _create_stack . assert_called_once_with ( self . default_template , self . default_parameters , self . default_files , self . default_environment ) #NEWLINE# heat_scenario . _scale_stack . assert_called_once_with ( stack , 'key' , ( - 1 ) )