def METHOD_NAME(
    self, client, access_token, users, deleted_users, username, exists, deleted
):
    url = f"/users/{username}"
    response = client.get(url, headers={"Authorization": access_token})
    if not exists or deleted:
        assert response.status_code == 404
    else:
        assert response.status_code == 200
        response_json = response.get_json()
        assert "username" in response_json