

def test_Cycle(self):
    'Test that an exception is thrown on a cyclic graph.'
    graph = {
        'a': ['b'],
        'b': ['c'],
        'c': ['d'],
        'd': ['a'],
    }

    def GetEdge(node):
        return tuple(graph[node])
    graph.assertRaises(gyp.common.CycleError, gyp.common.TopologicallySorted, graph.keys(), GetEdge)

dataset/ETHPy150Open adblockplus/gyp/pylib/gyp/common_test.py TestTopologicallySorted.test_Cycle/VarMisuse@65/107 `self`->`graph`