Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
pysaml2 / tests / test_05_md.pyc
Size: Mime:
ó
6£ßNc@sdZdZddlZyddlmZWn!ek
rOddlmZnXddlZddlZ	ddlm
Z
ddlmZddlmZddl
mZdd	l
mZdd
lmZddlZddlZddEd„ƒYZd
dFd„ƒYZddGd„ƒYZddHd„ƒYZddId„ƒYZddJd„ƒYZddKd„ƒYZddLd„ƒYZddMd„ƒYZddNd„ƒYZddOd „ƒYZd!dPd"„ƒYZd#dQd$„ƒYZd%dRd&„ƒYZ d'dSd(„ƒYZ!d)dTd*„ƒYZ"d+dUd,„ƒYZ#d-dVd.„ƒYZ$d/dWd0„ƒYZ%d1dXd2„ƒYZ&d3dYd4„ƒYZ'd5dZd6„ƒYZ(d7d[d8„ƒYZ)d9d\d:„ƒYZ*d;d]d<„ƒYZ+d=d^d>„ƒYZ,d?d_d@„ƒYZ-dAd`dB„ƒYZ.dCdadD„ƒYZ/dS(bsTests for saml2.mds&roland.hedberg@umu.se (Roland Hedberg)iÿÿÿÿN(tElementTree(tsaml(tsamlp(tmd(tidpdisc(tshibmd(textension_element_to_elementtTestEndpointTypecBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(Rt
EndpointType_tendpoint(tself((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pytsetup_class*scCs™tj|j_d|j_d|j_|jjjjƒGHt	j
|jjƒƒ}|jtjkskt‚|jdks€t‚|jdks•t‚dS(sTest for EndpointType accessorsshttp://www.example.com/endpointshttp://www.example.com/responseN(
tsaml2tBINDING_HTTP_POSTR	tbindingtlocationtresponse_locationt	__class__tc_attributestitemsRtendpoint_type__from_stringt	to_stringtAssertionError(R
tnew_endpoint((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyt
testAccessors-scCsXtjtjƒ}|jtjks*t‚|jdks?t‚|j	dksTt‚dS(s5Test for endpoint_type_from_string() using test data.shttp://www.example.com/endpointshttp://www.example.com/responseN(
RRtmd_datat
TEST_ENDPOINTRRR
RRR(R
R((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyttestUsingTestData8s(t__name__t
__module__RRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR(s		tTestIndexedEndpointTypecBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtIndexedEndpointType_ti_e(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRBscCsÇtj|j_d|j_d|j_d|j_d|j_tj	|jj
ƒƒ}|jtjksot‚|jdks„t‚|jdks™t‚|jdks®t‚|jdksÃt‚dS(s&Test for IndexedEndpointType accessorsshttp://www.example.com/endpointshttp://www.example.com/responset1tfalseN(RR
R RRRtindext
is_defaultRt"indexed_endpoint_type__from_stringRR(R
tnew_i_e((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyREscCs‚tjtjƒ}|jtjks*t‚|jdks?t‚|j	dksTt‚|j
dksit‚|jdks~t‚dS(s=Test for indexed_endpoint_type_from_string() using test data.shttp://www.example.com/endpointshttp://www.example.com/responseR!R"N(RR%RtTEST_INDEXED_ENDPOINTRRR
RRRR#R$(R
R&((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRSs(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR@s		tTestExtensionscBseZd„Zd„ZRS(cCstjƒ|_dS(N(Rt
Extensionst
extensions(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR_scCsv|jjjtjdƒƒtj|jjƒƒ}|jdjdksPt	‚|jdj
jƒdksrt	‚dS(sTest for Extensions accessorssE<?xml version='1.0' encoding='UTF-8'?>
      <hoge>fuga</hoge>
      ithogetfugaN(R*textension_elementstappendRtextension_element_from_stringRtextensions_from_stringRttagRttexttstrip(R
tnew_extensions((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRbs
(RRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR(]s	tTestOrganizationNamecBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtOrganizationNametorganization_name(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRpscCsdd|j_d|j_tj|jjƒƒ}|jdksEt‚|jjƒdks`t‚dS(s#Test for OrganizationName accessorstensSIOS Technology, Inc.N(R7tlangR2Rtorganization_name_from_stringRRR3(R
tnew_organization_name((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRsscCsQtjtjƒ}|jƒGH|jdks2t‚|jjƒdksMt‚dS(s9Test for organization_name_from_string() using test data.tset	CatalogixN(	RR:RtTEST_ORGANIZATION_NAMEtkeyswvR9RR2R3(R
R;((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR|s
(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR5ns			tTestOrganizationDisplayNamecBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtOrganizationDisplayNametod_name(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR‡scCsdd|j_d|j_tj|jjƒƒ}|jdksEt‚|jjƒdks`t‚dS(s*Test for OrganizationDisplayName accessorsR8tSIOSN(RBR9R2Rt%organization_display_name_from_stringRRR3(R
tnew_od_name((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRŠscCsFtjtjƒ}|jdks't‚|jjƒdksBt‚dS(sATest for organization_display_name_from_string() using test data.R<R=N(RRDRtTEST_ORGANIZATION_DISPLAY_NAMER9RR2R3(R
RE((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR“s(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR@…s			tTestOrganizationURLcBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtOrganizationURLtorganization_url(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRscCsrd|j_d|j_|jjƒGHtj|jjƒƒ}|jdksSt‚|jjƒdksnt‚dS(s"Test for OrganizationURL accessorstjashttp://www.example.com/N(RIR9R2RRtorganization_url_from_stringRR3(R
tnew_organization_url((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR scCsFtjtjƒ}|jdks't‚|jjƒdksBt‚dS(s8Test for organization_url_from_string() using test data.tnoshttp://www.example.com/N(RRKRtTEST_ORGANIZATION_URLR9RR2R3(R
RL((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRªs(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRG›s		
tTestOrganizationcBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtOrganizationtorganization(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR´scCs½tjƒ|j_|jjjtjtjƒƒ|jj	jtj
tjƒƒ|jjjtj
tjƒƒtj|jjƒƒ}t|jtjƒs¢t‚t|jdtjƒsÁt‚t|j	dtjƒsàt‚t|jdtjƒsÿt‚|jdjjƒdks!t‚|jdjdks=t‚|j	djjƒdks_t‚|j	djdks{t‚|jdjjƒdkst‚|jdjdks¹t‚dS(sTest for Organization accessorsiR=R<shttp://www.example.com/RMN(RR)RQR*R7R.R:RR>torganization_display_nameRDRFRIRKRNtorganization_from_stringRt
isinstanceRR6RARHR2R3R9(R
tnew_organization((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR·s,



"""cCsHtjtjƒ}t|jtjƒs-t‚t|jdtj	ƒsLt‚t|j
dtjƒskt‚t|jdtj
ƒsŠt‚|jdjjƒdks¬t‚|jdjdksÈt‚|j
djjƒdksêt‚|j
djdkst‚|jdjjƒdks(t‚|jdjdksDt‚dS(	s4Test for organization_from_string() using test data.isCatalogix ABR<sCatalogix ASRMshttp://www.example.com/R8N(RRSRtTEST_ORGANIZATIONRTR*R)RR7R6RRRARIRHR2R3R9(R
RU((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRÑs


"""(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRO²s		tTestContactPersoncBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(Rt
ContactPersontcontact_person(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRæscCsÏd|j_tjƒ|j_tjddƒ|j_tjddƒ|j_tj	ddƒ|j_
|jjjtj
ddƒƒ|jjjtj
ddƒƒ|jjjtjddƒƒtj|jjƒƒ}|jdksðt‚t|jtjƒst‚|jjjƒdks)t‚|jjjƒdksGt‚|j
jjƒdkset‚|jd	jjƒdks‡t‚|jd
jjƒdks©t‚|jd	jjƒdksËt‚dS(s Test for ContactPerson accessorst	technicalR2sSIOS Technology, Inc.tTakashitMatsuostmatsuo@example.comstmatsuo@shehas.nets00-0000-0000iiN(RYtcontact_typeRR)R*tCompanytcompanyt	GivenNamet
given_nametSurNametsur_namet
email_addressR.tEmailAddressttelephone_numbertTelephoneNumbertcontact_person_from_stringRRRTR2R3(R
tnew_contact_person((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRés*""cCstjtjƒ}|jdks't‚t|jtjƒsBt‚|j	j
jƒdks`t‚|jj
jƒdks~t‚|j
j
jƒdksœt‚|jdj
jƒdks¾t‚|jdj
jƒdksàt‚|jdj
jƒd	kst‚d
S(s6Test for contact_person_from_string() using test data.RZsSIOS Technology, Inc.R[R\istmatsuo@example.comistmatsuo@shehas.nets00-0000-0000N(RRhRtTEST_CONTACT_PERSONR]RRTR*R)R_R2R3RaRcRdRf(R
Ri((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRs""(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRWäs		tTestAdditionalMetadataLocationcBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtAdditionalMetadataLocationtadditional_metadata_location(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRscCsdd|j_d|j_tj|jjƒƒ}|jdksEt‚|jjƒdks`t‚dS(s-Test for AdditionalMetadataLocation accessorss http://www.example.com/namespaces1http://www.example.com/AdditionalMetadataLocationN(Rmt	namespaceR2Rt(additional_metadata_location_from_stringRRR3(R
t new_additional_metadata_location((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRscCsFtjtjƒ}|jdks't‚|jjƒdksBt‚dS(sDTest for additional_metadata_location_from_string() using test data.s http://www.example.com/namespaces1http://www.example.com/AdditionalMetadataLocationN(RRoRt!TEST_ADDITIONAL_METADATA_LOCATIONRnRR2R3(R
Rp((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRs(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRks		tTestEncryptionMethodcBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtEncryptionMethodtencryption_method(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRIscCs=d|j_tj|jjƒƒ}|jdks9t‚dS(s#Test for EncryptionMethod accessorss/http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1pN(Rtt	algorithmRtencryption_method_from_stringRR(R
tnew_encryption_method((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRLscCsItjtjƒ}|jdks't‚|jjjƒdksEt‚dS(s9Test for encryption_method_from_string() using test data.s/http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1ps9lWu3Q==N(	RRvRtTEST_ENCRYPTION_METHODRuRtoae_pparamsR2R3(R
Rw((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRTs(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRrGs		tTestKeyDescriptorcBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(Rt
KeyDescriptortkey_descriptor(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR^scCs®d|j_tjtjƒ|j_|jjjt	j
tjƒƒt	j
|jjƒƒ}|jdkspt‚t|jtjƒs‹t‚t|jdt	jƒsªt‚dS(s Test for KeyDescriptor accessorstsigningiN(R|tusetdstkey_info_from_stringtds_datat
TEST_KEY_INFOtkey_infoRtR.RRvRRxtkey_descriptor_from_stringRRRTtKeyInfoRs(R
tnew_key_descriptor((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRas

cCsetjtjƒ}|jdks't‚t|jtj	ƒsBt‚t|j
dtjƒsat‚dS(s6Test for key_descriptor_from_string() using test data.R}iN(RR„RtTEST_KEY_DESCRIPTORR~RRTRƒRR…RtRs(R
R†((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRps
(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRz\s		tTestRoleDescriptorcBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtRoleDescriptortrole_descriptor(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR{scCsÄd|j_d|j_d|j_tj|j_d|j_tj	ƒ|j_
tjƒ|j_
|jjjtjtjƒƒtjƒ|j_|jjjtjƒƒtj|jjƒƒ}|jdksÚt‚|jdksït‚|jdkst‚|jtjkst‚|jdks1t‚t|j
tj	ƒsLt‚t|j
tjƒsgt‚t|jdtjƒs†t‚t|jtjƒs¡t‚t|jdtjƒsÀt‚dS(s!Test for RoleDescriptor accessorstIDs2008-09-14T01:05:02Zs10:00:00:00shttp://www.example.com/errorURLiN(RŠtidtvalid_untiltcache_durationRt	NAMESPACEtprotocol_support_enumerationt	error_urlRt	Signaturet	signatureRR)R*R|R.R„RR‡RPRQRYRXtrole_descriptor_from_stringRRRTR{(R
tnew_role_descriptor((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR~s2


cCstjtjƒ}|jdks't‚|jdks<t‚|jdksQt‚|jt	j
ksit‚|jdks~t‚t|j
tjƒs™t‚t|jtjƒs´t‚t|jdtjƒsÓt‚t|jtjƒsît‚t|jdtjƒs
t‚dS(s7Test for role_descriptor_from_string() using test data.R‹s2008-09-14T01:05:02Zs10:00:00:00shttp://www.example.com/errorURLiN(RR”RtTEST_ROLE_DESCRIPTORRŒRRRŽRRRR‘RTR“RR’R*R)R|R{RQRPRYRX(R
R•((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR›s

(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRˆzs		tTestArtifactResolutionServicecBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtArtifactResolutionServiceR (R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRàscCsÇtj|j_d|j_d|j_d|j_d|j_tj	|jj
ƒƒ}|jtjksot‚|jdks„t‚|jdks™t‚|jdks®t‚|jdksÃt‚dS(s,Test for ArtifactResolutionService accessorsshttp://www.example.com/endpointshttp://www.example.com/responseR!R"N(RR
R RRRR#R$Rt'artifact_resolution_service_from_stringRR(R
R&((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRãscCs‚tjtjƒ}|jtjks*t‚|jdks?t‚|j	dksTt‚|j
dksit‚|jdks~t‚dS(sCTest for artifact_resolution_service_from_string() using test data.shttp://www.example.com/endpointshttp://www.example.com/responseR!R"N(RR™Rt TEST_ARTIFACT_RESOLUTION_SERVICERRR
RRRR#R$(R
R&((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRñs(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR—Þs		tTestSingleLogoutcBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtSingleLogoutServiceR	(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRþscCs…tj|j_d|j_d|j_tj|jjƒƒ}|jtjksWt	‚|jdkslt	‚|jdkst	‚dS(s&Test for SingleLogoutService accessorsshttp://www.example.com/endpointshttp://www.example.com/responseN(
RR
R	RRRRt!single_logout_service_from_stringRR(R
R((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRscCsXtjtjƒ}|jtjks*t‚|jdks?t‚|j	dksTt‚dS(s=Test for single_logout_service_from_string() using test data.shttp://www.example.com/endpointshttp://www.example.com/responseN(
RRRtTEST_SINGLE_LOGOUT_SERVICERRR
RRR(R
R((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRs
(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRݟs		
tTestManageNameIDServicecBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtManageNameIDServiceR	(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRscCs…tj|j_d|j_d|j_tj|jjƒƒ}|jtjksWt	‚|jdkslt	‚|jdkst	‚dS(s&Test for ManageNameIDService accessorsshttp://www.example.com/endpointshttp://www.example.com/responseN(
RR
R	RRRRt"manage_name_id_service_from_stringRR(R
R((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRscCsXtjtjƒ}|jtjks*t‚|jdks?t‚|j	dksTt‚dS(s>Test for manage_name_id_service_from_string() using test data.shttp://www.example.com/endpointshttp://www.example.com/responseN(
RR¡RtTEST_MANAGE_NAMEID_SERVICERRR
RRR(R
R((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR#s
(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRŸs		
tTestNameIDFormatcBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtNameIDFormattname_id_format(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR.scCsItj|j_tj|jjƒƒ}|jjƒtjksEt‚dS(sTest for NameIDFormat accessorsN(	RtNAMEID_FORMAT_EMAILADDRESSR¥R2Rtname_id_format_from_stringRR3R(R
tnew_name_id_format((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR1scCs4tjtjƒ}|jjƒtjks0t‚dS(s6Test for name_id_format_from_string() using test data.N(	RR§RtTEST_NAME_ID_FORMATR2R3RR¦R(R
R¨((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR8s(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR£,s		tTestSingleSignOnServicecBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtSingleSignOnServiceR	(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRAscCs…tj|j_d|j_d|j_tj|jjƒƒ}|jtjksWt	‚|jdkslt	‚|jdkst	‚dS(s&Test for SingelSignOnService accessorsshttp://www.example.com/endpointshttp://www.example.com/responseN(
RR
R	RRRRt"single_sign_on_service_from_stringRR(R
R((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRDscCsXtjtjƒ}|jtjks*t‚|jdks?t‚|j	dksTt‚dS(s<Test for SingelSignOn_service_from_string() using test data.shttp://www.example.com/endpointshttp://www.example.com/responseN(
RR¬RtTEST_SINGLE_SIGN_ON_SERVICERRR
RRR(R
R((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRNs
(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRª?s		
tTestNameIDMappingServicecBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtNameIDMappingServiceR	(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRXscCs…tj|j_d|j_d|j_tj|jjƒƒ}|jtjksWt	‚|jdkslt	‚|jdkst	‚dS(s'Test for NameIDMappingService accessorsshttp://www.example.com/endpointshttp://www.example.com/responseN(
RR
R	RRRRt#name_id_mapping_service_from_stringRR(R
R((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR[scCsXtjtjƒ}|jtjks*t‚|jdks?t‚|j	dksTt‚dS(s?Test for name_id_mapping_service_from_string() using test data.shttp://www.example.com/endpointshttp://www.example.com/responseN(
RR°RtTEST_NAME_ID_MAPPING_SERVICERRR
RRR(R
R((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRes
(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR®Vs		
tTestAssertionIDRequestServicecBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtAssertionIDRequestServiceR	(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRoscCs…tj|j_d|j_d|j_tj|jjƒƒ}|jtjksWt	‚|jdkslt	‚|jdkst	‚dS(s,Test for AssertionIDRequestService accessorsshttp://www.example.com/endpointshttp://www.example.com/responseN(
RR
R	RRRRt(assertion_id_request_service_from_stringRR(R
R((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRrscCsXtjtjƒ}|jtjks*t‚|jdks?t‚|j	dksTt‚dS(sDTest for assertion_id_request_service_from_string() using test data.shttp://www.example.com/endpointshttp://www.example.com/responseN(
RR´Rt!TEST_ASSERTION_ID_REQUEST_SERVICERRR
RRR(R
R((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR}s
(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR²ms		tTestAttributeProfilecBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtAttributeProfiletattribute_profile(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR‡scCsItj|j_tj|jjƒƒ}|jjƒtjksEt‚dS(s#Test for AttributeProfile accessorsN(	RtPROFILE_ATTRIBUTE_BASICR¸R2Rtattribute_profile_from_stringRR3R(R
tnew_attribute_profile((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRŠscCs4tjtjƒ}|jjƒtjks0t‚dS(s6Test for name_id_format_from_string() using test data.N(	RRºRtTEST_ATTRIBUTE_PROFILER2R3RR¹R(R
R»((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR‘s(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR¶…s		tTestIDPSSODescriptorcBs,eZd„Zd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtIDPSSODescriptortidp_sso_descriptor(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR™scCsÝd|j_d|j_d|j_tj|j_d|j_tj	ƒ|j_
tjƒ|j_
|jjjtjtjƒƒtjƒ|j_|jjjtjƒƒ|jjjtjƒƒ|jjjtjƒƒ|jjjtjƒƒ|jjjtjƒƒd|j_|jj jtj!ƒƒ|jj"jtj#ƒƒ|jj$jtj%ƒƒ|jj&jtj'ƒƒ|jj(jt)j*ƒƒtj+|jj,ƒƒ}|jdksÇt-‚|jdksÜt-‚|jdksñt-‚|jtjks	t-‚|jdkst-‚t.|j
tj	ƒs9t-‚t.|j
tjƒsTt-‚t.|jdtj/ƒsst-‚t.|jtjƒsŽt-‚t.|jdtjƒs­t-‚t.|jdtjƒsÌt-‚t.|jdtjƒsët-‚t.|jdtjƒs
t-‚t.|jdtjƒs)t-‚|jdks>t-‚t.|j dtj!ƒs]t-‚t.|j"dtj#ƒs|t-‚t.|j$dtj%ƒs›t-‚t.|j&dtj'ƒsºt-‚t.|j(dt)j*ƒsÙt-‚dS(s#Test for IDPSSODescriptor accessorsR‹s2008-09-14T01:05:02Zs10:00:00:00shttp://www.example.com/errorURLttrueiN(0R¿RŒRRŽRRRR‘RR’R“RR)R*R|R.R„RR‡RPRQRYRXtartifact_resolution_serviceR˜tsingle_logout_serviceRœtmanage_name_id_serviceR R¥R¤twant_authn_requests_signedtsingle_sign_on_serviceR«tname_id_mapping_serviceR¯tassertion_id_request_serviceR³R¸R·t	attributeRt	Attributetidpsso_descriptor_from_stringRRRTR{(R
tnew_idp_sso_descriptor((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRœs‚









	









cCs=tjtjƒ}|jdks't‚|jdks<t‚|jdksQt‚|jt	j
ksit‚|jdks~t‚t|j
tjƒs™t‚t|jtjƒs´t‚t|jdtjƒsÓt‚t|jtjƒsît‚t|jdtjƒs
t‚t|jdtjƒs,t‚t|jdtjƒsKt‚t|jdtjƒsjt‚t|jdtjƒs‰t‚|j dksžt‚t|j!dtj"ƒs½t‚t|j#dtj$ƒsÜt‚t|j%dtj&ƒsût‚t|j'dtj(ƒst‚t|j)dt*j+ƒs9t‚dS(s9Test for idpsso_descriptor_from_string() using test data.R‹s2008-09-14T01:05:02Zs10:00:00:00shttp://www.example.com/errorURLiRÀN(,RRÊRtTEST_IDP_SSO_DESCRIPTORRŒRRRŽRRRR‘RTR“RR’R*R)R|R{RQRPRYRXRÁR˜RÂRœRÃR R¥R¤RÄRÅR«RÆR¯RÇR³R¸R·RÈRRÉ(R
RË((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRâsH
	









cCsðtjƒ}tjƒ}d|_d|_tjƒ|_tj	|ƒ}|jj
j|ƒ|j}t|j
ƒdkst
‚|j
d}tj|tjdtjƒ}t|tjƒsÂt
‚|jdks×t
‚|jdksìt
‚dS(Nsexample.orgR"iiRn(RR¾RtScopeR2tregexpR)R*Rtelement_to_extension_elementR-R.tlenRRtELEMENT_FROM_STRINGRRT(R
t
descriptortscopetexttextstelemtinst((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyttestUsingScope	s 			
		(RRRRRRØ(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR½˜s		F	'tTestAssertionConsumerServicecBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtAssertionConsumerServiceR (R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRscCsÇtj|j_d|j_d|j_d|j_d|j_tj	|jj
ƒƒ}|jtjksot‚|jdks„t‚|jdks™t‚|jdks®t‚|jdksÃt‚dS(s+Test for AssertionConsumerService accessorsshttp://www.example.com/endpointshttp://www.example.com/responseR!R"N(RR
R RRRR#R$Rt&assertion_consumer_service_from_stringRR(R
R&((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR scCs‚tjtjƒ}|jtjks*t‚|jdks?t‚|j	dksTt‚|j
dksit‚|jdks~t‚dS(sBTest for assertion_consumer_service_from_string() using test data.shttp://www.example.com/endpointshttp://www.example.com/responseR!R"N(RRÛRtTEST_ASSERTION_CONSUMER_SERVICERRR
RRRR#R$(R
R&((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR.s(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRÙs		tTestRequestedAttributecBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtRequestedAttributetrequested_attribute(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR;scCs»t|jtjƒst‚t|jtjƒs6t‚|jjdksNt‚d|j_tj	|jj
ƒƒ}|jdks‡t‚t|tjƒsŸt‚t|tjƒs·t‚dS(s%Test for RequestedAttribute accessorsRÀN(RTRßRtAttributeType_RRRÞtis_requiredtNonetrequested_attribute_from_stringR(R
tnew_requested_attribute((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR>scCs[tjtjƒ}|jdks't‚t|tjƒs?t‚t|tj	ƒsWt‚dS(s;Test for requested_attribute_from_string() using test data.RÀN(
RRãRtTEST_REQUESTED_ATTRIBUTERáRRTRRàRÞ(R
Rä((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRJs
(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRÝ9s		tTestServiceNamecBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtServiceNametservice_name(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRUscCsdd|j_d|j_tj|jjƒƒ}|jdksEt‚|jjƒdks`t‚dS(sTest for ServiceName accessorsR8s	SIOS mailN(RèR9R2Rtservice_name_from_stringRRR3(R
tnew_service_name((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRXs
cCsFtjtjƒ}|jdks't‚|jjƒdksBt‚dS(s9Test for organization_name_from_string() using test data.R8sCatalogix WhoisN(RRéRtTEST_SERVICE_NAMER9RR2R3(R
Rê((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR`s(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRæSs		tTestServiceDescriptioncBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtServiceDescriptiontservice_description(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRiscCsdd|j_d|j_tj|jjƒƒ}|jdksEt‚|jjƒdks`t‚dS(s%Test for ServiceDescription accessorsR8sSIOS mail serviceN(RîR9R2Rtservice_description_from_stringRRR3(R
tnew_service_description((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRlscCsFtjtjƒ}|jdks't‚|jjƒdksBt‚dS(s9Test for organization_name_from_string() using test data.R8sCatalogix Whois ServiceN(RRïRtTEST_SERVICE_DESCRIPTIONR9RR2R3(R
Rð((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRus(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRìgs			tTestAttributeConsumingServicecBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtAttributeConsumingServicetattribute_consuming_service(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRscCs|jjjtjƒƒ|jjjtjƒƒ|jjjtjƒƒd|j_	d|j_
tj|jjƒƒ}|j	dkst
‚|j
dks¥t
‚t|jdtjƒsÄt
‚t|jdtjƒsãt
‚t|jdtjƒst
‚dS(s,Test for AttributeConsumingService accessorsR!RÀiN(RôRèR.RRçRîRíRßRÞR#R$t'attribute_consuming_service_from_stringRRRT(R
tnew_attribute_consuming_service((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR‚s&




cCstjtjƒ}|jdks't‚|jdks<t‚t|jdtj	ƒs[t‚t|j
dtjƒszt‚t|jdtj
ƒs™t‚dS(sCTest for attribute_consuming_service_from_string() using test data.R!RÀiN(RRõRt TEST_ATTRIBUTE_CONSUMING_SERVICER#RR$RTRèRçRîRíRßRÞ(R
Rö((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR™s


(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRò}s		tTestSPSSODescriptorcBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtSPSSODescriptortsp_sso_descriptor(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRªscCscd|j_d|j_d|j_tj|j_d|j_tj	ƒ|j_
tjƒ|j_
|jjjtjtjƒƒtjƒ|j_|jjjtjƒƒ|jjjtjƒƒ|jjjtjƒƒ|jjjtjƒƒ|jjjtjƒƒd|j_d|j_ |jj!jtj"ƒƒ|jj#jtj$ƒƒ|jGHtj%|jj&ƒƒ}|GH|jdks•t'‚|jdksªt'‚|jdks¿t'‚|jtjks×t'‚|jdksìt'‚t(|j
tj	ƒst'‚t(|j
tjƒs"t'‚t(|jdtj)ƒsAt'‚t(|jtjƒs\t'‚t(|jdtjƒs{t'‚t(|jdtjƒsšt'‚t(|jdtjƒs¹t'‚t(|jdtjƒsØt'‚t(|jdtjƒs÷t'‚|jdkst'‚|j dks!t'‚t(|j!dtj"ƒs@t'‚t(|j#dtj$ƒs_t'‚dS(s"Test for SPSSODescriptor accessorsR‹s2008-09-14T01:05:02Zs10:00:00:00shttp://www.example.com/errorURLRÀiN(*RúRŒRRŽRRRR‘RR’R“RR)R*R|R.R„RR‡RPRQRYRXRÁR˜RÂRœRÃR R¥R¤tauthn_requests_signedtwant_assertions_signedtassertion_consumer_serviceRÚRôRótspsso_descriptor_from_stringRRRTR{(R
tnew_sp_sso_descriptor((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR­sv







	






cCs‹tjtjƒ}|jdks't‚|jdks<t‚|jdksQt‚|jt	j
ksit‚|jdks~t‚t|j
tjƒs™t‚t|jtjƒs´t‚|jjGHt|jjƒdksÝt‚xj|jjD]\}dG|jGHt|tjtj
ƒ}dG|jG|jG|jGHt|tjƒsêt‚qêWt|jdtjƒsit‚t|jtjƒs„t‚t|jdtj ƒs£t‚t|j!dtj"ƒsÂt‚t|j#dtj$ƒsát‚t|j%dtj&ƒst‚t|j'dtj(ƒst‚|j)d	ks4t‚|j*d	ksIt‚t|j+dtj,ƒsht‚t|j-dtj.ƒs‡t‚d
S(s8Test for spsso_descriptor_from_string() using test data.R‹s2008-09-14T01:05:02Zs10:00:00:00shttp://www.example.com/errorURLitEEtDPiRÀN(/RRþRtTEST_SP_SSO_DESCRIPTORRŒRRRŽRRRR‘RTR“RR’R*R)t__dict__RÐR-RRRÑtc_tagtc_namespacetDiscoveryResponseR|R{RQRPRYRXRÁR˜RÂRœRÃR R¥R¤RûRüRýRÚRôRó(R
Rÿteelemtdp((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRísP
	






(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRø©s		@tTestEntityDescriptorcBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtEntityDescriptortentity_descriptor(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRscCs?d|j_d|j_d|j_d|j_tjƒ|j_tj	ƒ|j_
|jjjtj
ƒƒ|jjjtjƒƒ|jjjtjƒƒtjƒ|j_|jjjtjƒƒ|jjjtjƒƒtj|jjƒƒ}|jdkst‚|jdks%t‚|jdks:t‚|jdksOt‚t|jtjƒsjt‚t|j
tj	ƒs…t‚t|jdtj
ƒs¤t‚t|jdtjƒsÃt‚t|jdtjƒsât‚t|jtjƒsýt‚t|jdtjƒst‚t|jdtjƒs;t‚dS(s!Test for RoleDescriptor accessorsR‹tentityIDs2008-09-14T01:05:02Zs10:00:00:00iN(RRŒt	entity_idRRŽRR’R“RR)R*RŠR.R‰tidpsso_descriptorR¾tspsso_descriptorRùRPRQRYRXRmRltentity_descriptor_from_stringRRRT(R
tnew_entity_descriptor((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRsD



	

cCsVtjtjƒ}|jdks't‚|jdks<t‚|jdksQt‚|jdksft‚t	|j
tjƒst‚t	|j
tjƒsœt‚t	|jdtjƒs»t‚t	|jdtjƒsÚt‚t	|jdtjƒsùt‚t	|jtjƒst‚t	|jdtjƒs3t‚t	|jdtjƒsRt‚dS(s9Test for entity_descriptor_from_string() using test data.R‹Rs2008-09-14T01:05:02Zs10:00:00:00iN(RRRtTEST_ENTITY_DESCRIPTORRŒRR
RRŽRTR“RR’R*R)RŠR‰RR¾RRùRQRPRYRXRmRl(R
R((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRDs(


	

(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR	s		'tTestEntitiesDescriptorcBs#eZd„Zd„Zd„ZRS(cCstjƒ|_dS(N(RtEntitiesDescriptortentities_descriptor(R
((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR]scCsjd|j_d|j_d|j_d|j_tjƒ|j_tj	ƒ|j_
|jjjtj
ƒƒ|jjjtjƒƒtj|jjƒƒ}|jdks³t‚|jdksÈt‚|jdksÝt‚|jdksòt‚t|jtjƒs
t‚t|j
tj	ƒs(t‚t|jdtj
ƒsGt‚t|jdtjƒsft‚dS(s%Test for EntitiesDescriptor accessorsR‹tnames2008-09-14T01:05:02Zs10:00:00:00iN(RRŒRRRŽRR’R“RR)R*RR.R
Rtentities_descriptor_from_stringRRRT(R
tnew_entities_descriptor((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR`s*


cCsÞtjtjƒ}|jdks't‚|jdks<t‚|jdksQt‚|jdksft‚t	|j
tjƒst‚t	|j
tjƒsœt‚t	|jdtjƒs»t‚t	|jdtjƒsÚt‚dS(s;Test for entities_descriptor_from_string() using test data.R‹Rs2008-09-14T01:05:02Zs10:00:00:00iN(RRRtTEST_ENTITIES_DESCRIPTORRŒRRRRŽRTR“RR’R*R)RR
RR(R
R((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyRzs

(RRRRR(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyR\s		((((((((((((((((((((((((((((((0t__doc__t
__author__tunittestt	xml.etreeRtImportErrortelementtreeRtxmldsigRRRRtsaml2.extensionRRRRRRRR(R5R@RGRORWRkRrRzRˆR—R›RŸR£RªR®R²R¶R½RÙRÝRæRìRòRøR	R(((s</home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_05_md.pyt<module>sX
2*9dƒ,pC