#NEWLINE# def test_stack_validation( self ) : #NEWLINE# #INDENT# test_template = tempfile . NamedTemporaryFile ( delete = False ) #NEWLINE# test_template . write ( validate_template ) #NEWLINE# test_template . close ( ) #NEWLINE# stack_name = self . getUniqueString ( 'validate_template' ) #NEWLINE# self . assertRaises ( exc . OpenStackCloudException , self . cloud . create_stack , name = self , template_file = test_template . name )