def METHOD_NAME(self):
    # stubs the worker connection so that it appears that the TCP connection
    # has been severed in a way that no response is ever received, but
    # messages don't fail immediately. All callback will be called when
    # disconnect_worker is called
    self._connection_severed = True
    def register_deferred():
        d = defer.Deferred()
        if self._severed_deferreds is None:
            self._severed_deferreds = []
        self._severed_deferreds.append(d)
        return d
    def remotePrint(message):
        return register_deferred()
    self.worker.conn.remotePrint = remotePrint
    def remoteGetWorkerInfo():
        return register_deferred()
    self.worker.conn.remoteGetWorkerInfo = remoteGetWorkerInfo
    def remoteSetBuilderList(builders):
        return register_deferred()
    self.worker.conn.remoteSetBuilderList = remoteSetBuilderList
    def remoteStartCommand(remoteCommand, builderName, commandId,
                           commandName, args):
        return register_deferred()
    self.worker.conn.remoteStartCommand = remoteStartCommand
    def remoteShutdown():
        return register_deferred()
    self.worker.conn.remoteShutdown = remoteShutdown
    def remoteStartBuild(builderName):
        return register_deferred()
    self.worker.conn.remoteStartBuild = remoteStartBuild
    def remoteInterruptCommand(builderName, commandId, why):
        return register_deferred()
    self.worker.conn.remoteInterruptCommand = remoteInterruptCommand