def METHOD_NAME(self, tmpdir, cert_and_key, satosa_config_dict,
                                                  saml_frontend_config, saml_backend_config):
    satosa_config_dict["FRONTEND_MODULES"] = [saml_frontend_config]
    satosa_config_dict["BACKEND_MODULES"] = [saml_backend_config, saml_backend_config]
    create_and_write_saml_metadata(satosa_config_dict, cert_and_key[1], cert_and_key[0], str(tmpdir), None,
                                   split_backend_metadata=True)
    conf = Config()
    conf.cert_file = cert_and_key[0]
    security_ctx = security_context(conf)
    written_metadata_files = [saml_backend_config["name"], saml_backend_config["name"]]
    for file in written_metadata_files:
        md = MetaDataFile(None, os.path.join(str(tmpdir), "{}_0.xml".format(file)), security=security_ctx)
        assert md.load()