def _protocolFactory(self, *args, **kw): self._serverProtocol = pb.Broker(0) return self._serverProtocol
def setUp(self): self.step = buildstep.RemoteShellCommand("build", ["echo", "hello"]) self.step.buildslave = self.step.remote = mock.Mock() self.step.processUniqueID = lambda: 2 self.step.remote.broker = pb.Broker()