Пример #1
0
def test_get_tree():
    tree = get_tree()
    assert type(tree) in (ET.ElementTree, ET.Element)
    assert len(list(tree.iter(tag='movie'))) == 5
Пример #2
0
def test_get_tree():
    tree = get_tree()
    assert type(tree) == ET.ElementTree
    assert len(list(tree.iter(tag="movie"))) == 5