def test_DistPackage_render_as_branch():
    alembic = find_dist('alembic')
    assert alembic.project_name == 'alembic'
    assert alembic.version == '0.6.2'
    sqlalchemy = find_req('sqlalchemy', 'alembic')
    assert sqlalchemy.project_name == 'SQLAlchemy'
    assert sqlalchemy.version_spec == '>=0.7.3'
    assert sqlalchemy.installed_version == '0.9.1'
    result_1 = alembic.render_as_branch(sqlalchemy, False)
    result_2 = alembic.render_as_branch(sqlalchemy, False)
    assert result_1 == result_2 == 'alembic==0.6.2 [requires: SQLAlchemy>=0.7.3]'
dataset/ETHPy150Open naiquevin/pipdeptree/tests/test_pipdeptree.py/test_DistPackage_render_as_branch/original