def unbook(self, kill=False): """Unbook the current frame. If the value of kill is true, the frame will be immediately killed. """ response = self.stub.Unbook(host_pb2.ProcUnbookRequest(proc=self.data, kill=kill), timeout=Cuebot.Timeout) return response
def unbook(self, kill=False): """Unbooks the current frame from this proc. :type kill: bool :param kill: if true, the frame will be immediately killed """ response = self.stub.Unbook(host_pb2.ProcUnbookRequest(proc=self.data, kill=kill), timeout=Cuebot.Timeout) return response
def testUnbookKill(self, getStubMock): stubMock = mock.Mock() stubMock.Unbook.return_value = host_pb2.ProcUnbookResponse() getStubMock.return_value = stubMock proc = opencue.wrappers.proc.Proc(host_pb2.Proc(name=TEST_PROC_NAME)) proc.unbook(kill=True) stubMock.Unbook.assert_called_with(host_pb2.ProcUnbookRequest( proc=proc.data, kill=True), timeout=mock.ANY)