'Make sure we can succeed on retries'

def test_email_retries(self):

    with mock.patch(u'django.core.mail.send_mail') as mock_exception:
        mock_exception.side_effect = NoAuthHandlerFound()
        with mock.patch(u'cms_user_tasks.tasks.send_task_complete_email.retry') as mock_retry:
            user_task_stopped.send(sender=UserTaskStatus, status=self.status)
            self.assertTrue(mock_retry.called)
