def addChain(self, pEdgeChain, pEndStatusList=[DONE]):
        if not isinstance(pEndStatusList, (list, tuple)):
            raise ConnectionError("Invalid end status given, it must be a \
                list of statuses.")

        if not isinstance(pEdgeChain, (list, tuple)):
            raise ConnectionError("Invalid edge chain given, it must be a \
                list of Task or TaskGroup.")

        # Loop over list by pair
        for (srcNode, destNode) in zip(pEdgeChain[:-1], pEdgeChain[1:]):
            print ("Add dependency: %r -> %r with status in %r"
                   % (srcNode, destNode, pEndStatusList))
            destNode.dependencies[srcNode] = pEndStatusList
        return True
Patch L{pwd.getpwnam} so that it behaves as though only one user exists
dataset/ETHPy150Open mikrosimage/OpenRenderManagement/src/puliclient/__init__.py/Graph.addChain--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_twistd.py/patchUserDatabase