# Path: os_brick/initiator/windows/smbfs.py
# class WindowsSMBFSConnector(win_conn_base.BaseWindowsConnector):
#     def __init__(self, *args, **kwargs):
#     def get_connector_properties(*args, **kwargs):
#     def connect_volume(self, connection_properties):
#     def disconnect_volume(self, connection_properties, device_info=None,
#                           force=False, ignore_errors=False):
#     def _get_export_path(self, connection_properties):
#     def _get_disk_path(self, connection_properties):
#     def get_search_path(self):
#     def get_volume_paths(self, connection_properties):
#     def ensure_share_mounted(self, connection_properties):
#     def extend_volume(self, connection_properties):
# 
# Path: os_brick/remotefs/windows_remotefs.py
# LOG = logging.getLogger(__name__)
# class WindowsRemoteFsClient(remotefs.RemoteFsClient):
#     def __init__(self, mount_type, root_helper=None,
#                  execute=None, *args, **kwargs):
#     def get_local_share_path(self, share, expect_existing=True):
#     def _get_share_norm_path(self, share):
#     def get_share_name(self, share):
#     def get_share_subdir(self, share):
#     def mount(self, share, flags=None):
#     def unmount(self, share):
#     def _create_mount_point(self, share, use_local_path):
#     def _parse_credentials(self, opts_str):
# 
# Path: os_brick/tests/windows/test_base.py
# class WindowsConnectorTestBase(base.TestCase):
#     def setUp(self):


import os
import ddt
from unittest import mock
from os_brick.initiator.windows import smbfs
from os_brick.remotefs import windows_remotefs
from os_brick.tests.windows import test_base
# Copyright 2016 Cloudbase Solutions Srl
# All Rights Reserved.
#
#    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.





@ddt.ddt
class WindowsSMBFSConnectorTestCase(test_base.WindowsConnectorTestBase):
    def setUp(self):
        super(WindowsSMBFSConnectorTestCase, self).setUp()

        self._load_connector()

    @mock.patch.object(windows_remotefs, 'WindowsRemoteFsClient')
    def _load_connector(self, mock_remotefs_cls, *args, **kwargs):

# Path: os_brick/initiator/windows/smbfs.py
# class WindowsSMBFSConnector(win_conn_base.BaseWindowsConnector):
#     def __init__(self, *args, **kwargs):
#     def get_connector_properties(*args, **kwargs):
#     def connect_volume(self, connection_properties):
#     def disconnect_volume(self, connection_properties, device_info=None,
#                           force=False, ignore_errors=False):
#     def _get_export_path(self, connection_properties):
#     def _get_disk_path(self, connection_properties):
#     def get_search_path(self):
#     def get_volume_paths(self, connection_properties):
#     def ensure_share_mounted(self, connection_properties):
#     def extend_volume(self, connection_properties):
# 
# Path: os_brick/remotefs/windows_remotefs.py
# LOG = logging.getLogger(__name__)
# class WindowsRemoteFsClient(remotefs.RemoteFsClient):
#     def __init__(self, mount_type, root_helper=None,
#                  execute=None, *args, **kwargs):
#     def get_local_share_path(self, share, expect_existing=True):
#     def _get_share_norm_path(self, share):
#     def get_share_name(self, share):
#     def get_share_subdir(self, share):
#     def mount(self, share, flags=None):
#     def unmount(self, share):
#     def _create_mount_point(self, share, use_local_path):
#     def _parse_credentials(self, opts_str):
# 
# Path: os_brick/tests/windows/test_base.py
# class WindowsConnectorTestBase(base.TestCase):
#     def setUp(self):


# Path: os_brick/tests/windows/test_smbfs.py
import os
import ddt
from unittest import mock
from os_brick.initiator.windows import smbfs
from os_brick.remotefs import windows_remotefs
from os_brick.tests.windows import test_base

# Copyright 2016 Cloudbase Solutions Srl
# All Rights Reserved.
#
#    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.





@ddt.ddt
class WindowsSMBFSConnectorTestCase(test_base.WindowsConnectorTestBase):
    def setUp(self):
        super(WindowsSMBFSConnectorTestCase, self).setUp()

        self._load_connector()

    @mock.patch.object(windows_remotefs, 'WindowsRemoteFsClient')
    def _load_connector(self, mock_remotefs_cls, *args, **kwargs):

        self._connector = smbfs.WindowsSMBFSConnector(*args, **kwargs)