# Path: pymco/test/utils.py
# def get_template(name, package=__package__):
# def configfile(ctxt=None):
# 
# Path: pymco/test/utils.py
# def get_template(name, package=__package__):
# def configfile(ctxt=None):


import pytest
from pymco.test import ctxt
from pymco.test import utils
from pymco.test.utils import mock
    from pymco import config
    from pymco import message
    from pymco import message
    from pymco import message
def pytest_runtest_setup(item):
    utils.configfile()


@pytest.fixture
def configstr():
    return CONFIGSTR


@pytest.fixture
def config(configstr):
    # Importing here since py-cov will ignore code imported on conftest files
    # imports
    return config.Config.from_configstr(configstr=configstr)


@pytest.fixture
def filter_():
    '''Creates a new :py:class:`pymco.message.Filter` instance.'''
    # Importing here since py-cov will ignore code imported on conftest files
    # imports
    return message.Filter()


@pytest.fixture
def msg(config, filter_):
    '''Creates a new :py:class:`pymco.message.Message` instance.'''
    # Importing here since py-cov will ignore code imported on conftest files
    # imports
    with mock.patch('time.time') as time:

# Path: pymco/test/utils.py
# def get_template(name, package=__package__):
# def configfile(ctxt=None):
# 
# Path: pymco/test/utils.py
# def get_template(name, package=__package__):
# def configfile(ctxt=None):


# Path: tests/unit/conftest.py
import pytest
from pymco.test import ctxt
from pymco.test import utils
from pymco.test.utils import mock
    from pymco import config
    from pymco import message
    from pymco import message
    from pymco import message

def pytest_runtest_setup(item):
    utils.configfile()


@pytest.fixture
def configstr():
    return CONFIGSTR


@pytest.fixture
def config(configstr):
    # Importing here since py-cov will ignore code imported on conftest files
    # imports
    return config.Config.from_configstr(configstr=configstr)


@pytest.fixture
def filter_():
    '''Creates a new :py:class:`pymco.message.Filter` instance.'''
    # Importing here since py-cov will ignore code imported on conftest files
    # imports
    return message.Filter()


@pytest.fixture
def msg(config, filter_):
    '''Creates a new :py:class:`pymco.message.Message` instance.'''
    # Importing here since py-cov will ignore code imported on conftest files
    # imports
    with mock.patch('time.time') as time:

        with mock.patch('hashlib.sha1') as sha1: