'Attempting to activate outside the permitted window does not
activate the account.'

def test_expired_activation(self):

    new_user = self.registration_profile.objects.create_inactive_user(site=Site.objects.get_current(), **self.user_info)
    new_user.date_joined -= datetime.timedelta(days=(settings.ACCOUNT_ACTIVATION_DAYS + 1))
    new_user.save()
    profile = self.registration_profile.objects.get(user=new_user)
    activated = self.registration_profile.objects.activate_user(profile.activation_key, Site.objects.get_current())
    self.failIf(isinstance(activated, UserModel()))
    self.failIf(activated)
    new_user = UserModel().objects.get(username='alice')
    self.failIf(new_user.is_active)
    profile = self.registration_profile.objects.get(user=new_user)
    self.assertFalse(profile.activated)
