# Path: f5_heat/resources/f5_sys_iappcompositetemplate.py
# class F5SysiAppCompositeTemplate(F5BigIPMixin, resource.Resource):
#     PROPERTIES = (
#         NAME,
#         BIGIP_SERVER,
#         PARTITION,
#         REQUIRES_MODULES,
#         IMPLEMENTATION,
#         PRESENTATION,
#         HELP,
#         ROLE_ACL
#     ) = (
#         'name',
#         'bigip_server',
#         'partition',
#         'requires_modules',
#         'implementation',
#         'presentation',
#         'help',
#         'role-acl'
#     )
#     def _add_optional_attr(self, iapp_dict):
#     def _build_iapp_dict(self):
#     def handle_create(self):
#     def handle_delete(self):
# def resource_mapping():


from f5_heat.resources import f5_sys_iappcompositetemplate
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
    create_result = F5SysiAppTemplate.handle_create()
    assert create_result is None
    assert F5SysiAppTemplate.bigip.tm.sys.application.templates.template.\
        create.call_args == mock.call(**iapp_actions_dict)


def test_handle_create_error(CreateTemplateSideEffect):
    '''Currently, test exists to satisfy 100% code coverage.'''
    with pytest.raises(exception.ResourceFailure):
        CreateTemplateSideEffect.handle_create()


def test_handle_delete(F5SysiAppTemplate):
    assert F5SysiAppTemplate.handle_delete() is True
    assert F5SysiAppTemplate.bigip.tm.sys.application.templates.template.\
        load.call_args == mock.call(
            name='testing_template', partition='Common')


def test_handle_delete_no_exists(F5SysiAppTemplateNoExists):
    assert F5SysiAppTemplateNoExists.handle_delete() is True


def test_handle_delete_error(DeleteTemplateSideEffect):
    '''Currently, test exists to satisfy 100% code coverage.'''
    with pytest.raises(exception.ResourceFailure):
        DeleteTemplateSideEffect.handle_delete()


def test_resource_mapping():

# Path: f5_heat/resources/f5_sys_iappcompositetemplate.py
# class F5SysiAppCompositeTemplate(F5BigIPMixin, resource.Resource):
#     PROPERTIES = (
#         NAME,
#         BIGIP_SERVER,
#         PARTITION,
#         REQUIRES_MODULES,
#         IMPLEMENTATION,
#         PRESENTATION,
#         HELP,
#         ROLE_ACL
#     ) = (
#         'name',
#         'bigip_server',
#         'partition',
#         'requires_modules',
#         'implementation',
#         'presentation',
#         'help',
#         'role-acl'
#     )
#     def _add_optional_attr(self, iapp_dict):
#     def _build_iapp_dict(self):
#     def handle_create(self):
#     def handle_delete(self):
# def resource_mapping():


# Path: f5_heat/resources/test/test_f5_sys_iappcompositetemplate.py
from f5_heat.resources import f5_sys_iappcompositetemplate
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

    create_result = F5SysiAppTemplate.handle_create()
    assert create_result is None
    assert F5SysiAppTemplate.bigip.tm.sys.application.templates.template.\
        create.call_args == mock.call(**iapp_actions_dict)


def test_handle_create_error(CreateTemplateSideEffect):
    '''Currently, test exists to satisfy 100% code coverage.'''
    with pytest.raises(exception.ResourceFailure):
        CreateTemplateSideEffect.handle_create()


def test_handle_delete(F5SysiAppTemplate):
    assert F5SysiAppTemplate.handle_delete() is True
    assert F5SysiAppTemplate.bigip.tm.sys.application.templates.template.\
        load.call_args == mock.call(
            name='testing_template', partition='Common')


def test_handle_delete_no_exists(F5SysiAppTemplateNoExists):
    assert F5SysiAppTemplateNoExists.handle_delete() is True


def test_handle_delete_error(DeleteTemplateSideEffect):
    '''Currently, test exists to satisfy 100% code coverage.'''
    with pytest.raises(exception.ResourceFailure):
        DeleteTemplateSideEffect.handle_delete()


def test_resource_mapping():

    rsrc_map = f5_sys_iappcompositetemplate.resource_mapping()