'A ``GET`` to the activation view when activation link is expired'

def test_activation_expired_retry(self):

    userena_settings.USERENA_ACTIVATION_RETRY = True
    self.client.post(reverse('userena_signup'), data={'username': 'alice', 'email': 'alice@example.com', 'password1': 'swordfish', 'password2': 'swordfish', 'tos': 'on'})
    user = User.objects.get(email='alice@example.com')
    user.date_joined = (datetime.today() - timedelta(days=30))
    user.save()
    response = self.client.get(reverse('userena_activate', kwargs={'activation_key': user.userena_signup.activation_key}))
    self.assertContains(response, 'Request    a    new    activation    link')
    user = User.objects.get(email='alice@example.com')
    self.assertTrue((not user.is_active))
    userena_settings.USERENA_ACTIVATION_RETRY = False
