# Path: os_brick/initiator/connectors/base_iscsi.py
# class BaseISCSIConnector(initiator_connector.InitiatorConnector):
#     def _iterate_all_targets(self, connection_properties):
#     def _get_luns(con_props, iqns=None):
#     def _get_all_targets(self, connection_properties):
# 
# Path: os_brick/initiator/connectors/fake.py
# class FakeConnector(base.BaseLinuxConnector):
# class FakeBaseISCSIConnector(FakeConnector, base_iscsi.BaseISCSIConnector):
#     def connect_volume(self, connection_properties):
#     def disconnect_volume(self, connection_properties, device_info,
#                           force=False, ignore_errors=False):
#     def get_volume_paths(self, connection_properties):
#     def get_search_path(self):
#     def extend_volume(self, connection_properties):
#     def get_all_available_volumes(self, connection_properties=None):
# 
# Path: os_brick/tests/base.py
# class TestCase(testtools.TestCase):
#     SENTINEL = object()
#     def setUp(self):
#     def _common_cleanup(self):
#     def log_level(self, level):
#     def mock_object(self, obj, attr_name, new_attr=SENTINEL, **kwargs):
#     def patch(self, path, *args, **kwargs):


from unittest import mock
from os_brick.initiator.connectors import base_iscsi
from os_brick.initiator.connectors import fake
from os_brick.tests import base as test_base
# (c) Copyright 2013 Hewlett-Packard Development Company, L.P.
#
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.



class BaseISCSIConnectorTestCase(test_base.TestCase):

    def setUp(self):
        super(BaseISCSIConnectorTestCase, self).setUp()
        self.connector = fake.FakeBaseISCSIConnector(None)


# Path: os_brick/initiator/connectors/base_iscsi.py
# class BaseISCSIConnector(initiator_connector.InitiatorConnector):
#     def _iterate_all_targets(self, connection_properties):
#     def _get_luns(con_props, iqns=None):
#     def _get_all_targets(self, connection_properties):
# 
# Path: os_brick/initiator/connectors/fake.py
# class FakeConnector(base.BaseLinuxConnector):
# class FakeBaseISCSIConnector(FakeConnector, base_iscsi.BaseISCSIConnector):
#     def connect_volume(self, connection_properties):
#     def disconnect_volume(self, connection_properties, device_info,
#                           force=False, ignore_errors=False):
#     def get_volume_paths(self, connection_properties):
#     def get_search_path(self):
#     def extend_volume(self, connection_properties):
#     def get_all_available_volumes(self, connection_properties=None):
# 
# Path: os_brick/tests/base.py
# class TestCase(testtools.TestCase):
#     SENTINEL = object()
#     def setUp(self):
#     def _common_cleanup(self):
#     def log_level(self, level):
#     def mock_object(self, obj, attr_name, new_attr=SENTINEL, **kwargs):
#     def patch(self, path, *args, **kwargs):


# Path: os_brick/tests/initiator/connectors/test_base_iscsi.py
from unittest import mock
from os_brick.initiator.connectors import base_iscsi
from os_brick.initiator.connectors import fake
from os_brick.tests import base as test_base

# (c) Copyright 2013 Hewlett-Packard Development Company, L.P.
#
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.



class BaseISCSIConnectorTestCase(test_base.TestCase):

    def setUp(self):
        super(BaseISCSIConnectorTestCase, self).setUp()
        self.connector = fake.FakeBaseISCSIConnector(None)


    @mock.patch.object(base_iscsi.BaseISCSIConnector, '_get_all_targets')