diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2013-12-13 13:44:53 +0100 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2013-12-13 13:44:53 +0100 |
commit | b6336dc0cda2626c010894a0ff978b6c67516d60 (patch) | |
tree | 289bb714419ded36b1dfb1c9fb8187f9f0610784 /tests/test_50_server.py | |
parent | c2701e9ba2c768d62dd54e171b51229a21135e83 (diff) | |
download | pysaml2-b6336dc0cda2626c010894a0ff978b6c67516d60.tar.gz |
Fixed all tests and various bugs that appeared during that process.
Diffstat (limited to 'tests/test_50_server.py')
-rw-r--r-- | tests/test_50_server.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_50_server.py b/tests/test_50_server.py index d857b5c7..f3e6b7cf 100644 --- a/tests/test_50_server.py +++ b/tests/test_50_server.py @@ -218,10 +218,10 @@ class TestServer1(): assert assertion.attribute_statement attribute_statement = assertion.attribute_statement print attribute_statement - assert len(attribute_statement.attribute) == 5 + assert len(attribute_statement[0].attribute) == 5 # Pick out one attribute attr = None - for attr in attribute_statement.attribute: + for attr in attribute_statement[0].attribute: if attr.friendly_name == "edupersonentitlement": break assert len(attr.attribute_value) == 1 @@ -233,7 +233,7 @@ class TestServer1(): assert assertion.subject assert assertion.subject.name_id assert assertion.subject.subject_confirmation - confirmation = assertion.subject.subject_confirmation + confirmation = assertion.subject.subject_confirmation[0] print confirmation.keyswv() print confirmation.subject_confirmation_data assert confirmation.subject_confirmation_data.in_response_to == "id12" @@ -426,8 +426,8 @@ class TestServer2(): subject = assertion.subject #assert subject.name_id.format == saml.NAMEID_FORMAT_TRANSIENT assert subject.subject_confirmation - subject_confirmation = subject.subject_confirmation - assert subject_confirmation.subject_confirmation_data.in_response_to == "aaa" + subject_conf = subject.subject_confirmation[0] + assert subject_conf.subject_confirmation_data.in_response_to == "aaa" def _logout_request(conf_file): |