def test_activation_expired_retry(self):
        """ A ``GET`` to the activation view when activation link is expired """
        # First, register an account.
        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 = timedelta(days=30) - datetime.today()
        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
dataset/ETHPy150Open bread-and-pepper/django-userena/userena/tests/tests_views.py/UserenaViewsTests.test_activation_expired_retry/swapped operands of `-`