コード例 #1
0
    def testLowerOrder(self, getStubMock):
        stubMock = mock.Mock()
        stubMock.LowerOrder.return_value = filter_pb2.FilterLowerOrderResponse()
        getStubMock.return_value = stubMock

        filterInst = opencue.wrappers.filter.Filter(filter_pb2.Filter(name=TEST_FILTER_NAME))
        filterInst.lowerOrder()

        stubMock.LowerOrder.assert_called_with(
            filter_pb2.FilterLowerOrderRequest(filter=filterInst.data), timeout=mock.ANY)
コード例 #2
0
 def lowerOrder(self):
     """Lowers the order of this filter relative to the other filters"""
     self.stub.LowerOrder(
         filter_pb2.FilterLowerOrderRequest(filter=self.data),
         timeout=Cuebot.Timeout)