def test_idp_2(): c = IdPConfig().load(IDP2) c.context = "idp" print(c) assert c.endpoint("single_logout_service", BINDING_SOAP) == [] assert c.endpoint("single_logout_service", BINDING_HTTP_REDIRECT) == ["http://localhost:8088/"] attribute_restrictions = c.getattr("policy", "idp").get_attribute_restrictions("") assert attribute_restrictions["edupersonaffiliation"][0].match("staff")
def test_idp_1(): c = IdPConfig().load(IDP1) c.context = "idp" print c assert c.endpoint("single_sign_on_service")[0] == 'http://localhost:8088/' attribute_restrictions = c.getattr("policy","idp").get_attribute_restriction("") assert attribute_restrictions["eduPersonAffiliation"][0].match("staff")
def test_idp_1(): c = IdPConfig().load(IDP1) c.context = "idp" print c assert c.endpoint("single_sign_on_service")[0] == 'http://localhost:8088/' attribute_restrictions = c.policy.get_attribute_restriction("") assert attribute_restrictions["eduPersonAffiliation"][0].match("staff")