def METHOD_NAME(httpserver: PluginHTTPServer):
    test_utils.allow_oauthlib_insecure_transport()
    httpserver.expect_request("/foo").respond_with_json(
        test_utils.get_json_response_mock()
    )
    runner = CliRunner()
    result = runner.invoke(
        login, ["-t", "api-token", "-u", httpserver.url_for("/foo"), "-a", "NqxjAfax"]
    )
    test_utils.assert_click_status(result, 0)
    assert result.output == "Login Successful\n"