'Test if ``clean_expired`` deletes all users which ``activation_key``
is expired.'

def test_clean_expired(self):

    user = UserenaSignup.objects.create_user(**self.user_info)
    user.date_joined -= datetime.timedelta(days=(userena_settings.USERENA_ACTIVATION_DAYS + 1))
    user.save()
    User.objects.get(username=self.user_info[u'username'])
    call_command(u'clean_expired')
    self.assertEqual(User.objects.filter(username=self.user_info[u'username']).count(), 0)
