'Mock the XQueue method for adding a task to the queue.'

@contextmanager
def _mock_xqueue(self):

    with patch.object(XQueueCertInterface, 'add_example_cert') as mock_queue:
        (yield mock_queue)
