def METHOD_NAME(self):
    self.newsletter_subscription.subscription_active = False
    self.newsletter_subscription.needs_retry = True
    self.newsletter_subscription.save()
    mock_subscribe, mock_unsubscribe = self.mock_retry_mailing_list(get_status_code=200)
    assert not mock_subscribe.called
    assert mock_unsubscribe.called
    self.newsletter_subscription.subscription_active = True
    self.newsletter_subscription.needs_retry = True
    self.newsletter_subscription.save()
    mock_subscribe, mock_unsubscribe = self.mock_retry_mailing_list(get_status_code=200)
    assert mock_subscribe.called
    assert not mock_unsubscribe.called