

def test_conflicting_deps():
    (_, _, conflicting_tree) = venv_fixture('tests/virtualenvs/unsatisfiedenv.pickle')
    flask = next((x for x in conflicting_tree.keys() if (x.key == 'flask')))
    jinja = next((x for x in conflicting_tree[flask] if (x.key == 'jinja2')))
    uritemplate = next((x for x in conflicting_tree.keys() if (x.key == 'uritemplate')))
    simplejson = next((x for x in conflicting_tree[x] if (x.key == 'simplejson')))
    assert jinja
    assert flask
    assert uritemplate
    assert simplejson
    unsatisfied = conflicting_deps(conflicting_tree)
    assert (unsatisfied == {
        flask: [jinja],
        uritemplate: [simplejson],
    })

dataset/ETHPy150Open naiquevin/pipdeptree/tests/test_pipdeptree.py test_conflicting_deps/VarMisuse@107/150 `uritemplate`->`x`