# Path: stestr/config_file.py
# class TestrConf:
#     def __init__(self, config_file, section='DEFAULT'):
#     def _sanitize_path(self, path):
#     def get_run_command(self, test_ids=None, regexes=None,
#                         test_path=None, top_dir=None, group_regex=None,
#                         repo_type='file', repo_url=None,
#                         serial=False, worker_path=None,
#                         concurrency=0,
#                         exclude_list=None,
#                         include_list=None,
#                         exclude_regex=None,
#                         randomize=False, parallel_class=None):
#             def group_callback(test_id, regex=re.compile(group_regex)):
# 
# Path: stestr/tests/base.py
# class TestCase(testtools.TestCase):
#     def setUp(self):


from unittest import mock
from stestr import config_file
from stestr.tests import base
import ddt
# 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 TestTestrConf(base.TestCase):

    @mock.patch.object(config_file.configparser, 'ConfigParser')
    def setUp(self, mock_ConfigParser):
        super().setUp()
        self._testr_conf = config_file.TestrConf(mock.sentinel.config_file)
        self._testr_conf.parser = mock.Mock()


# Path: stestr/config_file.py
# class TestrConf:
#     def __init__(self, config_file, section='DEFAULT'):
#     def _sanitize_path(self, path):
#     def get_run_command(self, test_ids=None, regexes=None,
#                         test_path=None, top_dir=None, group_regex=None,
#                         repo_type='file', repo_url=None,
#                         serial=False, worker_path=None,
#                         concurrency=0,
#                         exclude_list=None,
#                         include_list=None,
#                         exclude_regex=None,
#                         randomize=False, parallel_class=None):
#             def group_callback(test_id, regex=re.compile(group_regex)):
# 
# Path: stestr/tests/base.py
# class TestCase(testtools.TestCase):
#     def setUp(self):


# Path: stestr/tests/test_config_file.py
from unittest import mock
from stestr import config_file
from stestr.tests import base
import ddt

# 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 TestTestrConf(base.TestCase):

    @mock.patch.object(config_file.configparser, 'ConfigParser')
    def setUp(self, mock_ConfigParser):
        super().setUp()
        self._testr_conf = config_file.TestrConf(mock.sentinel.config_file)
        self._testr_conf.parser = mock.Mock()


    @mock.patch.object(config_file.util, 'get_repo_open')