All Samples(4) | Call(2) | Derive(0) | Import(2)
def from_local(acs, ava, name_format): for aconv in acs: #print ac.format, name_format if aconv.name_format == name_format: #print "Found a name_form converter" return aconv.to_(ava) return None
from saml2.assertion import filter_on_attributes from saml2.assertion import filter_attribute_value_assertions from saml2.assertion import from_local from saml2.s_utils import MissingValue from saml2 import attribute_converter
ava = ava.apply_policy("", policy) acs = ac_factory(full_path("attributemaps")) attribute = from_local(acs, ava, policy.get_name_form("")) assert len(attribute) == 4
src/p/y/pysaml2-HEAD/tests/test_20_assertion.py pysaml2(Download)
from saml2.assertion import filter_on_attributes from saml2.assertion import filter_attribute_value_assertions from saml2.assertion import from_local from saml2.s_utils import MissingValue from saml2 import attribute_converter
ava = ava.apply_policy("", policy) acs = ac_factory(full_path("attributemaps")) attribute = from_local(acs, ava, policy.get_name_form("")) assert len(attribute) == 4