Esempio n. 1
0
    def testOrderFirst(self, getStubMock):
        stubMock = mock.Mock()
        stubMock.OrderFirst.return_value = filter_pb2.FilterOrderFirstResponse()
        getStubMock.return_value = stubMock

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

        stubMock.OrderFirst.assert_called_with(
            filter_pb2.FilterOrderFirstRequest(filter=filterInst.data), timeout=mock.ANY)
Esempio n. 2
0
 def orderFirst(self):
     """Orders this filter above all the other filters"""
     self.stub.OrderFirst(
         filter_pb2.FilterOrderFirstRequest(filter=self.data),
         timeout=Cuebot.Timeout)