def METHOD_NAME(client):
    token = f.ApplicationTokenFactory()
    url = reverse("applications-token", args=[token.application.id])
    client.login(token.user)
    response = client.json.get(url)
    assert response.status_code == 200
    assert response.data.get("application").get("id") == token.application.id