def test_get_tree(): tree = get_tree() assert type(tree) in (ET.ElementTree, ET.Element) assert len(list(tree.iter(tag='movie'))) == 5
def test_get_tree(): tree = get_tree() assert type(tree) == ET.ElementTree assert len(list(tree.iter(tag="movie"))) == 5