def METHOD_NAME(client):
    user = UserFactory()
    s = SessionFactory(creator=user)
    response = get_view_for_user(
        client=client,
        method=client.patch,
        viewname="api:session-keep-alive",
        reverse_kwargs={"pk": s.pk},
        user=user,
        data={"status": "Stopped"},
        content_type="application/json",
    )
    assert response.status_code == 200
    s.refresh_from_db()
    assert s.status == s.QUEUED