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