# Path: tests/util.py
# def load_test_asset(fname):
#     """
#     Load a test file from assets directory, returning contents as str.
#     """
#     path = os.path.dirname(os.path.realpath(__file__))
#     fname = os.path.join(path, 'assets', fname)
#     with open(fname, 'r') as f:
#         return f.read()


import pytest
import re
import yaml
import axonchisel.metrics.foundation.metricdef.metricdef as metricdef
import axonchisel.metrics.foundation.metricdef.mdefl as mdefl
from .util import load_test_asset
"""
Ax_Metrics - Test foundation MDefL parsing

------------------------------------------------------------------------------
Author: Dan Kamins <dos at axonchisel dot net>
Copyright (c) 2014 Dan Kamins, AxonChisel.net
"""


# ----------------------------------------------------------------------------






# ----------------------------------------------------------------------------


class TestMetricDefParse(object):
    """
    Test MetricDef parsing.
    """

    #
    # Setup / Teardown
    #

    def setup_method(self, method):

# Path: tests/util.py
# def load_test_asset(fname):
#     """
#     Load a test file from assets directory, returning contents as str.
#     """
#     path = os.path.dirname(os.path.realpath(__file__))
#     fname = os.path.join(path, 'assets', fname)
#     with open(fname, 'r') as f:
#         return f.read()


# Path: tests/test_mdefl.py
import pytest
import re
import yaml
import axonchisel.metrics.foundation.metricdef.metricdef as metricdef
import axonchisel.metrics.foundation.metricdef.mdefl as mdefl
from .util import load_test_asset

"""
Ax_Metrics - Test foundation MDefL parsing

------------------------------------------------------------------------------
Author: Dan Kamins <dos at axonchisel dot net>
Copyright (c) 2014 Dan Kamins, AxonChisel.net
"""


# ----------------------------------------------------------------------------






# ----------------------------------------------------------------------------


class TestMetricDefParse(object):
    """
    Test MetricDef parsing.
    """

    #
    # Setup / Teardown
    #

    def setup_method(self, method):

        self.yaml_metric1 = load_test_asset('metricdef1.yml')