

def test_render_tree_only_top():
    tree_str = render_tree(tree, list_all=False)
    lines = set(tree_str.split('\n'))
    assert ('Flask-Script==0.6.6' in lines)
    assert ('  - SQLAlchemy [required: >=0.7.3, installed: 0.9.1]' in lines)
    assert ('Lookupy==0.1' in lines)
    assert ('itsdangerous==0.23' not in lines)

dataset/ETHPy150Open naiquevin/pipdeptree/tests/test_pipdeptree.py test_render_tree_only_top/original