#NEWLINE# @ mock . patch . object ( template_utils , 'get_template_contents' ) #NEWLINE# @ mock . patch . object ( shade . OpenStackCloud , 'heat_client' ) #NEWLINE# def test_create_stack( self , mock_heat , mock_template ) : #NEWLINE# #INDENT# mock_template . return_value = ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . cloud . create_stack ( 'stack_name' ) #NEWLINE# self . assertTrue ( mock_heat . called ) #NEWLINE# mock_heat . stacks . create . assert_called_once_with ( stack_name = 'stack_name' , disable_rollback = False , environment = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , parameters = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , template = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , files = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , timeout_mins = 60 )