# Path: rvic/core/pycompat.py
# def iteritems(d):
# def itervalues(d):
# def iteritems(d):
# def itervalues(d):


import pytest
from rvic.core.pycompat import (pyrange, pyzip, iteritems, itervalues,
                                OrderedDict, SafeConfigParser)
        assert v in b


def test_itervalues_ordered_dict():
    a = [1, 2, 3]
    b = ['a', 'b', 'c']
    d = OrderedDict(pyzip(a, b))
    for i, v in enumerate(itervalues(d)):
        assert v in b
        assert b[i] == v


def test_ordered_dict_order():
    a = [1, 2, 3]
    b = ['a', 'b', 'c']
    d = OrderedDict(pyzip(a, b))
    assert list(d.keys()) == a
    assert list(d.values()) == b


def test_ordered_dict_append():
    a = [1, 2, 3]
    b = ['a', 'b', 'c']
    d = OrderedDict(pyzip(a, b))
    d[4] = 'd'
    assert len(d) == 4
    assert list(d.keys())[-1] == 4


def test_init_safe_config_parser():

# Path: rvic/core/pycompat.py
# def iteritems(d):
# def itervalues(d):
# def iteritems(d):
# def itervalues(d):


# Path: tests/unit/test_pycompat.py
import pytest
from rvic.core.pycompat import (pyrange, pyzip, iteritems, itervalues,
                                OrderedDict, SafeConfigParser)

        assert v in b


def test_itervalues_ordered_dict():
    a = [1, 2, 3]
    b = ['a', 'b', 'c']
    d = OrderedDict(pyzip(a, b))
    for i, v in enumerate(itervalues(d)):
        assert v in b
        assert b[i] == v


def test_ordered_dict_order():
    a = [1, 2, 3]
    b = ['a', 'b', 'c']
    d = OrderedDict(pyzip(a, b))
    assert list(d.keys()) == a
    assert list(d.values()) == b


def test_ordered_dict_append():
    a = [1, 2, 3]
    b = ['a', 'b', 'c']
    d = OrderedDict(pyzip(a, b))
    d[4] = 'd'
    assert len(d) == 4
    assert list(d.keys())[-1] == 4


def test_init_safe_config_parser():

    SafeConfigParser()