def METHOD_NAME(client):
    user = UserFactory()
    response = get_view_for_user(
        client=client,
        viewname="api:session-list",
        user=user,
        content_type="application/json",
    )
    assert response.status_code == 200
    assert response.json()["count"] == 0
    _ = SessionFactory(creator=user), SessionFactory(creator=user)
    response = get_view_for_user(
        client=client,
        viewname="api:session-list",
        user=user,
        content_type="application/json",
    )
    assert response.status_code == 200
    assert response.json()["count"] == 2