# 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 x[9] == 9


def test_pyzip():
    a = [1, 2, 3]
    b = ['a', 'b', 'c']
    x = pyzip(a, b)
    assert hasattr(x, '__iter__')
    for i, (aa, bb) in enumerate(x):
        assert aa == a[i]
        assert bb == b[i]
    with pytest.raises(TypeError):
        len(x)
        x[1]


def test_iteritems():
    a = [1, 2, 3]
    b = ['a', 'b', 'c']
    d = dict(pyzip(a, b))
    for k, v in iteritems(d):
        assert k in a
        assert v in b
        assert d[k] == v


def test_iteritems_ordered_dict():
    a = [1, 2, 3]
    b = ['a', 'b', 'c']
    d = OrderedDict(pyzip(a, b))

# 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 x[9] == 9


def test_pyzip():
    a = [1, 2, 3]
    b = ['a', 'b', 'c']
    x = pyzip(a, b)
    assert hasattr(x, '__iter__')
    for i, (aa, bb) in enumerate(x):
        assert aa == a[i]
        assert bb == b[i]
    with pytest.raises(TypeError):
        len(x)
        x[1]


def test_iteritems():
    a = [1, 2, 3]
    b = ['a', 'b', 'c']
    d = dict(pyzip(a, b))
    for k, v in iteritems(d):
        assert k in a
        assert v in b
        assert d[k] == v


def test_iteritems_ordered_dict():
    a = [1, 2, 3]
    b = ['a', 'b', 'c']
    d = OrderedDict(pyzip(a, b))

    for i, (k, v) in enumerate(iteritems(d)):