# Path: f5_heat/resources/f5_sys_iappfulltemplate.py
# class IappFullTemplateValidationFailed(exception.StackValidationFailed):
# class F5SysiAppFullTemplate(F5BigIPMixin, resource.Resource):
#     PROPERTIES = (
#         BIGIP_SERVER,
#         PARTITION,
#         FULL_TEMPLATE
#     ) = (
#         'bigip_server',
#         'partition',
#         'full_template'
#     )
#     def __init__(self, name, defn, stack):
#     def _parse_full_template(self):
#     def _validate_template_partition(self):
#     def handle_create(self):
#     def handle_delete(self):
# def resource_mapping():
# 
# Path: f5_heat/resources/f5_sys_iappfulltemplate.py
# class IappFullTemplateValidationFailed(exception.StackValidationFailed):
#     pass


from f5_heat.resources import f5_sys_iappfulltemplate
from f5_heat.resources.f5_sys_iappfulltemplate import \
    IappFullTemplateValidationFailed
from heat.common import exception
from heat.common import template_format
from heat.engine.hot.template import HOTemplate20150430
from heat.engine import rsrc_defn
from heat.engine import template
import mock
import pytest
    'get_template_class',
    return_value=HOTemplate20150430
)
def mock_template(
        templ_vers,
        templ_class,
        test_templ=iapp_full_template_defn
):
    '''Mock a Heat template for the Kilo version.'''
    templ_dict = template_format.parse(test_templ)
    return templ_dict


def create_resource_definition(templ_dict):
    '''Create a resource definition.'''
    rsrc_def = rsrc_defn.ResourceDefinition(
        'test_stack',
        templ_dict['resources']['iapp_template']['type'],
        properties=templ_dict['resources']['iapp_template']['properties']
    )
    return rsrc_def


@pytest.fixture
def F5SysiAppTemplate():
    '''Instantiate the F5SysiAppTemplate resource.'''
    template_dict = mock_template()
    rsrc_def = create_resource_definition(template_dict)
    mock_stack = mock.MagicMock()
    mock_stack.resource_by_refid().get_partition_name.return_value = 'Common'

# Path: f5_heat/resources/f5_sys_iappfulltemplate.py
# class IappFullTemplateValidationFailed(exception.StackValidationFailed):
# class F5SysiAppFullTemplate(F5BigIPMixin, resource.Resource):
#     PROPERTIES = (
#         BIGIP_SERVER,
#         PARTITION,
#         FULL_TEMPLATE
#     ) = (
#         'bigip_server',
#         'partition',
#         'full_template'
#     )
#     def __init__(self, name, defn, stack):
#     def _parse_full_template(self):
#     def _validate_template_partition(self):
#     def handle_create(self):
#     def handle_delete(self):
# def resource_mapping():
# 
# Path: f5_heat/resources/f5_sys_iappfulltemplate.py
# class IappFullTemplateValidationFailed(exception.StackValidationFailed):
#     pass


# Path: f5_heat/resources/test/test_f5_sys_iappfulltemplate.py
from f5_heat.resources import f5_sys_iappfulltemplate
from f5_heat.resources.f5_sys_iappfulltemplate import \
    IappFullTemplateValidationFailed
from heat.common import exception
from heat.common import template_format
from heat.engine.hot.template import HOTemplate20150430
from heat.engine import rsrc_defn
from heat.engine import template
import mock
import pytest

    'get_template_class',
    return_value=HOTemplate20150430
)
def mock_template(
        templ_vers,
        templ_class,
        test_templ=iapp_full_template_defn
):
    '''Mock a Heat template for the Kilo version.'''
    templ_dict = template_format.parse(test_templ)
    return templ_dict


def create_resource_definition(templ_dict):
    '''Create a resource definition.'''
    rsrc_def = rsrc_defn.ResourceDefinition(
        'test_stack',
        templ_dict['resources']['iapp_template']['type'],
        properties=templ_dict['resources']['iapp_template']['properties']
    )
    return rsrc_def


@pytest.fixture
def F5SysiAppTemplate():
    '''Instantiate the F5SysiAppTemplate resource.'''
    template_dict = mock_template()
    rsrc_def = create_resource_definition(template_dict)
    mock_stack = mock.MagicMock()
    mock_stack.resource_by_refid().get_partition_name.return_value = 'Common'

    return f5_sys_iappfulltemplate.F5SysiAppFullTemplate(