def test_Valid(self):
    graph = {
        'a': ['b', 'c'],
        'b': [],
        'c': ['d'],
        'd': ['b'],
        }
    def GetEdge(node):
      return tuple(graph[node])
    self.assertEqual(
      gyp.common.TopologicallySorted(graph.keys(), GetEdge),
      ['a', 'c', 'd', 'b'])
Converts a query filter into a callable function.
dataset/ETHPy150Open adblockplus/gyp/pylib/gyp/common_test.py/TestTopologicallySorted.test_Valid--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_CompileFilter