Esempio n. 1
0
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
Esempio n. 2
0
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
Esempio n. 3
0
def test_itervalues():
    a = [1, 2, 3]
    b = ["a", "b", "c"]
    d = dict(pyzip(a, b))
    for v in itervalues(d):
        assert v in b
Esempio n. 4
0
def test_itervalues():
    a = [1, 2, 3]
    b = ['a', 'b', 'c']
    d = dict(pyzip(a, b))
    for v in itervalues(d):
        assert v in b