Exemple #1
0
def test_TaggedList_insert_with_key():
    t = TaggedList([11, ('v2', 22)])
    t.insert(0, x=1)
    assert len(t) == 3
    assert t.values == [1, 11, 22]
    assert t[0] == t['x'] == 1
Exemple #2
0
def test_TaggedList_insert():
    t = TaggedList([11, ('v2', 22)])
    t.insert(0, 1)
    assert len(t) == 3
    assert t.values == [1, 11, 22]