

def check_dependency_order(self, ordered_terms):
    seen = set()
    for term in ordered_terms:
        for dep in term.dependencies:
            self.assertIn(dep, seen)
        seen.add(term)

dataset/ETHPy150Open quantopian/zipline/tests/pipeline/test_term.py DependencyResolutionTestCase.check_dependency_order/original