diff --git a/tests/test_19_attribute_converter.py b/tests/test_19_attribute_converter.py index 70d7b9d..479f2f8 100644 --- a/tests/test_19_attribute_converter.py +++ b/tests/test_19_attribute_converter.py @@ -7,6 +7,7 @@ from attribute_statement_data import * from pathutils import full_path from saml2.attribute_converter import AttributeConverterNOOP from saml2.attribute_converter import to_local +from saml2.saml import attribute_from_string def _eq(l1,l2): @@ -205,8 +206,22 @@ def test_noop_attribute_conversion(): assert attr.attribute_value[0].text == "Roland" +ava = """ +uu.se""" + + +def test_schac(): + attr = attribute_from_string(ava) + acs = attribute_converter.ac_factory() + for ac in acs: + try: + res = ac.ava_from(attr) + except KeyError: + pass + + if __name__ == "__main__": - t = TestAC() - t.setup_class() - t.test_mixed_attributes_1() - #test_noop_attribute_conversion() + # t = TestAC() + # t.setup_class() + # t.test_mixed_attributes_1() + test_schac()