def METHOD_NAME():
    with closing(Server("idp_conf")) as server:
        name_id = server.ident.transient_nameid("urn:mace:example.com:saml:roland:sp", "id12")
        resp_ = server.create_authn_response(
            IDENTITY, "id12", "http://lingon.catalogix.se:8087/", "urn:mace:example.com:saml:roland:sp", name_id=name_id
        )
    statement = pre_encrypt_assertion(resp_)
    tmpl = full_path("enc_tmpl.xml")
    # tmpl_file = open(tmpl, "w")
    # tmpl_file.write("%s" % pre_encryption_part())
    # tmpl_file.close()
    data = full_path("pre_enc.xml")
    # data_file = open(data, "w")
    # data_file.write("%s" % statement)
    # data_file.close()
    key_type = "des-192"
    com_list = [
        xmlsec_path,
        "encrypt",
        "--pubkey-cert-pem",
        full_path("pubkey.pem"),
        "--session-key",
        key_type,
        "--xml-data",
        data,
        "--node-xpath",
        ASSERT_XPATH,
    ]
    crypto = CryptoBackendXmlSec1(xmlsec_path)
    (_stdout, _stderr, output) = crypto._run_xmlsec(com_list, [tmpl])
    assert _stderr == ""
    assert _stdout == ""