def testDelete(self, getStubMock): stubMock = mock.Mock() stubMock.Delete.return_value = filter_pb2.ActionDeleteResponse() getStubMock.return_value = stubMock action = opencue.wrappers.filter.Action(filter_pb2.Action(id=TEST_ACTION_ID)) action.delete() stubMock.Delete.assert_called_with( filter_pb2.ActionDeleteRequest(action=action.data), timeout=mock.ANY)
def delete(self): self.stub.Delete(filter_pb2.ActionDeleteRequest(action=self.data), timeout=Cuebot.Timeout)