9
def __init__(self, eyedee, parents):
11
self.parents = parents
28
class TestTopoSorting(unittest.TestCase):
32
'f' : Ob('f', ['d', 'e']),
34
'e' : Ob('e', ['c', 'g']),
36
'c' : Ob('c', ['b', 'h']),
41
d = toposort.TopoSort(data).items()
42
sort = ['a', 'b', 'd', 'h', 'c', 'g', 'e', 'f']
43
self.assertEquals(d, sort)
45
if __name__ == '__main__':