'Test if expired users are deleted from the database.'

def test_delete_expired_users(self):

    expired_user = UserenaSignup.objects.create_user(**self.user_info)
    expired_user.date_joined -= datetime.timedelta(days=(userena_settings.USERENA_ACTIVATION_DAYS + 1))
    expired_user.save()
    deleted_users = UserenaSignup.objects.delete_expired_users()
    self.assertEqual(deleted_users[0].username, 'alice')
