def setActive(self, value): """Set the active state of this show to value @type value: bool @param value: boolean value to set active state to """ self.stub.SetActive(show_pb2.ShowSetActiveRequest(show=self.data, value=value), timeout=Cuebot.Timeout)
def setActive(self, value): """Sets whether this show is active. :type value: bool :param value: whether the show is active """ self.stub.SetActive(show_pb2.ShowSetActiveRequest(show=self.data, value=value), timeout=Cuebot.Timeout)
def testSetActive(self, getStubMock): stubMock = mock.Mock() stubMock.SetActive.return_value = show_pb2.ShowSetActiveResponse() getStubMock.return_value = stubMock show = opencue.wrappers.show.Show(show_pb2.Show(name=TEST_SHOW_NAME)) show.setActive(TEST_ENABLE_VALUE) stubMock.SetActive.assert_called_with(show_pb2.ShowSetActiveRequest( show=show.data, value=TEST_ENABLE_VALUE), timeout=mock.ANY)