def logged_client(django_user_model, client):
    """A Django test client instance with a new user authenticated."""
    user = django_user_model.objects.create_user('user test')
    client.force_login(user)
    return client