# Path: f5_heat/resources/f5_bigip_device.py
# class BigIPConnectionFailed(HTTPError):
# class F5BigIPDevice(resource.Resource):
#     PROPERTIES = (
#         IP,
#         USERNAME,
#         PASSWORD
#     ) = (
#         'ip',
#         'username',
#         'password'
#     )
#     def get_bigip(self):
#     def handle_create(self):
#     def handle_delete(self):
# def resource_mapping():
# 
# Path: f5_heat/resources/f5_bigip_device.py
# class BigIPConnectionFailed(HTTPError):
#     pass


from f5.bigip import ManagementRoot
from f5_heat.resources import f5_bigip_device
from f5_heat.resources.f5_bigip_device import BigIPConnectionFailed
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
        'test_stack',
        templ_dict['resources']['bigip_rsrc']['type'],
        properties=templ_dict['resources']['bigip_rsrc']['properties']
    )
    return rsrc_def


@pytest.fixture
@mock.patch('f5_heat.resources.f5_bigip_device.ManagementRoot')
def F5BigIP(mock_mr):
    '''Instantiate the F5BigIP resource.'''
    template_dict = mock_template()
    rsrc_def = create_resource_definition(template_dict)
    f5_bigip_obj = f5_bigip_device.F5BigIPDevice(
        "testing_service", rsrc_def, mock.MagicMock()
    )
    f5_bigip_obj.uuid = test_uuid
    f5_bigip_obj.validate()
    return f5_bigip_obj


@pytest.fixture
def F5BigIPSideEffect(F5BigIP):
    F5BigIP.get_bigip = mock.MagicMock()
    return F5BigIP


@pytest.fixture
def F5BigIPHTTPError(F5BigIP):
    '''Instantiate the F5BigIP resource.'''

# Path: f5_heat/resources/f5_bigip_device.py
# class BigIPConnectionFailed(HTTPError):
# class F5BigIPDevice(resource.Resource):
#     PROPERTIES = (
#         IP,
#         USERNAME,
#         PASSWORD
#     ) = (
#         'ip',
#         'username',
#         'password'
#     )
#     def get_bigip(self):
#     def handle_create(self):
#     def handle_delete(self):
# def resource_mapping():
# 
# Path: f5_heat/resources/f5_bigip_device.py
# class BigIPConnectionFailed(HTTPError):
#     pass


# Path: f5_heat/resources/test/test_f5_bigip_device.py
from f5.bigip import ManagementRoot
from f5_heat.resources import f5_bigip_device
from f5_heat.resources.f5_bigip_device import BigIPConnectionFailed
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

        'test_stack',
        templ_dict['resources']['bigip_rsrc']['type'],
        properties=templ_dict['resources']['bigip_rsrc']['properties']
    )
    return rsrc_def


@pytest.fixture
@mock.patch('f5_heat.resources.f5_bigip_device.ManagementRoot')
def F5BigIP(mock_mr):
    '''Instantiate the F5BigIP resource.'''
    template_dict = mock_template()
    rsrc_def = create_resource_definition(template_dict)
    f5_bigip_obj = f5_bigip_device.F5BigIPDevice(
        "testing_service", rsrc_def, mock.MagicMock()
    )
    f5_bigip_obj.uuid = test_uuid
    f5_bigip_obj.validate()
    return f5_bigip_obj


@pytest.fixture
def F5BigIPSideEffect(F5BigIP):
    F5BigIP.get_bigip = mock.MagicMock()
    return F5BigIP


@pytest.fixture
def F5BigIPHTTPError(F5BigIP):
    '''Instantiate the F5BigIP resource.'''

    mock_get_bigip = mock.MagicMock(side_effect=BigIPConnectionFailed)