def test_tree():
    assert len(tree) == len(pkgs)
    assert all((isinstance(k, DistPackage) and
                all(isinstance(v, ReqPackage) for v in vs))
               for k, vs in tree.items())
dataset/ETHPy150Open naiquevin/pipdeptree/tests/test_pipdeptree.py/test_tree/original