# Path: marvin_python_toolbox/common/config.py
# def load_conf_from_file(path=None, section='marvin'):
#     def reset(cls):
#     def _load(cls, section=None):
#     def get(cls, key, section=None, **kwargs):
#     def keys(cls, section=None):
# DEFAULT_PREFIX = 'marvin.'
# DEFAULT_SECT = 'marvin'
#     PREFIX = DEFAULT_PREFIX
# class Configuration(object):
# 
# Path: marvin_python_toolbox/common/exceptions.py
# class InvalidConfigException(ConfigException):
#     """
#     Invalid Marvin Config Base Exception
#     """


import pytest
import os
    import mock
    import unittest.mock as mock
from marvin_python_toolbox.common.config import Config, load_conf_from_file
from marvin_python_toolbox.common.exceptions import InvalidConfigException
        from configparser import NoSectionError
# coding=utf-8

# Copyright [2017] [B2W Digital]
#
# 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.


try:
except ImportError:



class TestConfig:
    def teardown_method(self, test_method):
        Config.reset()

    @mock.patch('marvin_python_toolbox.common.config.ConfigObj')
    def test_load_conf_from_file(self, ConfigParserMocked):
        filepath = '/path/to/config/file.ini'


# Path: marvin_python_toolbox/common/config.py
# def load_conf_from_file(path=None, section='marvin'):
#     def reset(cls):
#     def _load(cls, section=None):
#     def get(cls, key, section=None, **kwargs):
#     def keys(cls, section=None):
# DEFAULT_PREFIX = 'marvin.'
# DEFAULT_SECT = 'marvin'
#     PREFIX = DEFAULT_PREFIX
# class Configuration(object):
# 
# Path: marvin_python_toolbox/common/exceptions.py
# class InvalidConfigException(ConfigException):
#     """
#     Invalid Marvin Config Base Exception
#     """


# Path: tests/common/test_config.py
import pytest
import os
    import mock
    import unittest.mock as mock
from marvin_python_toolbox.common.config import Config, load_conf_from_file
from marvin_python_toolbox.common.exceptions import InvalidConfigException
        from configparser import NoSectionError

# coding=utf-8

# Copyright [2017] [B2W Digital]
#
# 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.


try:
except ImportError:



class TestConfig:
    def teardown_method(self, test_method):
        Config.reset()

    @mock.patch('marvin_python_toolbox.common.config.ConfigObj')
    def test_load_conf_from_file(self, ConfigParserMocked):
        filepath = '/path/to/config/file.ini'


        load_conf_from_file(filepath)