def ez_user(client, django_user_model):
    """A Django test client that has been logged in as a regular user named "ezuser",
    with password "password".
    """
    username, password = "ezuser", "password"
    django_user_model.objects.create_user(username=username, password=password)
    client.login(username=username, password=password)
    return client