# Path: mcm/tools.py
# class StopWatch:
# class ChainMap(UserDict):
#     def __enter__(self):
#     def __exit__(self, exc_type, exc_value, traceback):
# def vcmp(v1, v2, op):
#     def __init__(self, *maps):
#     def __getitem__(self, key):


from mock import patch
from sys import version_info
    from time import monotonic
    from time import time
from mcm.tools import StopWatch, timer, vcmp, ChainMap
import operator
import pytest
# -*- coding: UTF-8 -*-


try:
except ImportError:



@pytest.mark.skipif( version_info < (3,3), reason='Requires python >= 3.3' )
def test_module_uses_monotonic_as_timer():
    '''Assert that time.monotonic is used.'''
    assert timer == monotonic

@pytest.mark.skipif( version_info > (3,2), reason='Using python >= 3.3' )
def test_module_uses_time_as_timer():
    '''Assert that time.time is used when time.monotonic is not available.'''

# Path: mcm/tools.py
# class StopWatch:
# class ChainMap(UserDict):
#     def __enter__(self):
#     def __exit__(self, exc_type, exc_value, traceback):
# def vcmp(v1, v2, op):
#     def __init__(self, *maps):
#     def __getitem__(self, key):


# Path: tests/test_tools.py
from mock import patch
from sys import version_info
    from time import monotonic
    from time import time
from mcm.tools import StopWatch, timer, vcmp, ChainMap
import operator
import pytest

# -*- coding: UTF-8 -*-


try:
except ImportError:



@pytest.mark.skipif( version_info < (3,3), reason='Requires python >= 3.3' )
def test_module_uses_monotonic_as_timer():
    '''Assert that time.monotonic is used.'''
    assert timer == monotonic

@pytest.mark.skipif( version_info > (3,2), reason='Using python >= 3.3' )
def test_module_uses_time_as_timer():
    '''Assert that time.time is used when time.monotonic is not available.'''

    assert timer == time