

def test_render_tree_freeze():
    tree_str = render_tree(tree, list_all=False, frozen=True)
    lines = set()
    for line in tree_str.split('\n'):
        line = line.replace('origin/master', 'master')
        line = line.replace('origin/HEAD', 'master')
        lines.add(line)
    assert ('Flask-Script==0.6.6' in lines)
    assert ('    SQLAlchemy==0.9.1' in lines)
    assert ('itsdangerous==0.23' not in lines)

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