def reorderFrames(self, range, order): """Reorders the specified frame range on this layer. @type range: string @param range: The frame range to reorder @type order: opencue.Order @param order: First, Last or Reverse""" self.stub.ReorderFrames(job_pb2.LayerReorderFramesRequest( layer=self.data, range=range, order=order), timeout=Cuebot.Timeout)
def reorderFrames(self, frameRange, order): """Reorders the specified frame range on this layer. :type frameRange: string :param frameRange: the frame range to reorder :type order: opencue.wrapper.layer.Layer.Order :param order: First, Last or Reverse """ self.stub.ReorderFrames(job_pb2.LayerReorderFramesRequest( layer=self.data, range=frameRange, order=order), timeout=Cuebot.Timeout)
def testReorderFrames(self, getStubMock): stubMock = mock.Mock() stubMock.ReorderFrames.return_value = job_pb2.LayerReorderFramesResponse() getStubMock.return_value = stubMock range = '1-10' order = job_pb2.REVERSE layer = opencue.wrappers.layer.Layer( job_pb2.Layer(name=TEST_LAYER_NAME)) layer.reorderFrames(range, order) stubMock.ReorderFrames.assert_called_with( job_pb2.LayerReorderFramesRequest(layer=layer.data, range=range, order=order), timeout=mock.ANY)