summaryrefslogtreecommitdiff
path: root/tests/attribute_statement_data.py
diff options
context:
space:
mode:
authorRoland Hedberg <roland.hedberg@adm.umu.se>2013-07-04 14:19:58 +0200
committerRoland Hedberg <roland.hedberg@adm.umu.se>2013-07-04 14:19:58 +0200
commit4ac5805ddd1bd03aaf863d37611400db35f03077 (patch)
tree1b003c8566d14bd352d11c4384e3fe4ffa860e1c /tests/attribute_statement_data.py
parentb28f7bc91819bcc5da7d8d13c2bffb4577d26c41 (diff)
downloadpysaml2-4ac5805ddd1bd03aaf863d37611400db35f03077.tar.gz
Rewrote conversion from AttributeStatement to dictionary. Can now handle undefined name format as well as different name format for different attributes in the Statement.
Diffstat (limited to 'tests/attribute_statement_data.py')
-rw-r--r--tests/attribute_statement_data.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/attribute_statement_data.py b/tests/attribute_statement_data.py
index 6e11588b..29648356 100644
--- a/tests/attribute_statement_data.py
+++ b/tests/attribute_statement_data.py
@@ -173,3 +173,13 @@ STATEMENT3 = """<?xml version='1.0' encoding='UTF-8'?>
<ns0:AttributeValue>Roland</ns0:AttributeValue>
</ns0:Attribute>
</ns0:AttributeStatement>"""
+
+STATEMENT4 = """<?xml version='1.0' encoding='UTF-8'?>
+<ns0:AttributeStatement xmlns:ns0="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <ns0:Attribute Name="user_id" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified">
+ <ns0:AttributeValue xsi:type="xs:string">bob</ns0:AttributeValue>
+ </ns0:Attribute>
+ <ns0:Attribute Name="NameID" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified">
+ <ns0:AttributeValue xsi:type="xs:string">bobsnameagain</ns0:AttributeValue>
+ </ns0:Attribute>
+</ns0:AttributeStatement>"""