MCPcopy
hub / github.com/celery/celery / test_topsort

Method test_topsort

t/unit/utils/test_graph.py:28–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 assert repr(self.graph1())
27
28 def test_topsort(self):
29 order = self.graph1().topsort()
30 # C must start before D
31 assert order.index('C') < order.index('D')
32 # and B must start before D
33 assert order.index('B') < order.index('D')
34 # and A must start before C
35 assert order.index('A') < order.index('C')
36
37 def test_edges(self):
38 edges = self.graph1().edges()

Callers

nothing calls this directly

Calls 2

graph1Method · 0.95
topsortMethod · 0.80

Tested by

no test coverage detected