Пример #1
0
    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)
Пример #2
0
 def delete(self):
     self.stub.Delete(filter_pb2.ActionDeleteRequest(action=self.data),
                      timeout=Cuebot.Timeout)