def test_proper_tree(self):
        dt = DependencyTree(LEGAL_TREE)
        order = dt.order
        added_elements = []
        for el in order:
            for dependency in LEGAL_TREE[el]:
                assert dependency in added_elements, \
                    "Element %s depends on %s and not added yet with order of %s!" % \
                    (el, dependency, added_elements)
            added_elements.append(el)
Test whether a proper dependency tree generated the correct output.
dataset/ETHPy150Open toumorokoshi/sprinter/sprinter/lib/tests/test_dependencytree.py/TestDependencyTree.test_proper_tree