Example #1
0
    def testDelete(self, getStubMock):
        stubMock = mock.Mock()
        stubMock.Delete.return_value = host_pb2.DeedDeleteResponse()
        getStubMock.return_value = stubMock

        deed = opencue.wrappers.deed.Deed(host_pb2.Deed(id=TEST_DEED_ID))
        deed.delete()

        stubMock.Delete.assert_called_with(
            host_pb2.DeedDeleteRequest(deed=deed.data), timeout=mock.ANY)
Example #2
0
 def delete(self):
     """Delete this comment"""
     self.stub.Delete(host_pb2.DeedDeleteRequest(deed=self.data),
                      timeout=Cuebot.Timeout)
Example #3
0
 def delete(self):
     """Deletes the deed."""
     self.stub.Delete(host_pb2.DeedDeleteRequest(deed=self.data),
                      timeout=Cuebot.Timeout)