diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2011-12-16 11:20:24 +0100 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2011-12-16 11:39:24 +0100 |
commit | e2c6b92f3f7dec057700f07836c54f180bf1bada (patch) | |
tree | 1ec105007798838f3275b6c693e551ff86e52805 /bindings | |
parent | 154812b401e3845977b3a4892dbc5e5a0b9d03cf (diff) | |
download | lasso-e2c6b92f3f7dec057700f07836c54f180bf1bada.tar.gz lasso-e2c6b92f3f7dec057700f07836c54f180bf1bada.tar.xz lasso-e2c6b92f3f7dec057700f07836c54f180bf1bada.zip |
[tests] fix tests to comply with new implementation of parsing
The test around parsing of EncryptedAssertion was wrong since it was
missing the XMLEnc namespace declaration.
Diffstat (limited to 'bindings')
-rwxr-xr-x | bindings/python/tests/profiles_tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bindings/python/tests/profiles_tests.py b/bindings/python/tests/profiles_tests.py index 45478f02..f5fd4637 100755 --- a/bindings/python/tests/profiles_tests.py +++ b/bindings/python/tests/profiles_tests.py @@ -452,8 +452,8 @@ class AttributeAuthorityTestCase(unittest.TestCase): class LogoutTestCase(unittest.TestCase): def test01(self): '''Test parsing of a logout request with more than one session index''' - content = '''<samlp:LogoutRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ID="xxxx" Version="2.0" IssueInstant="2010-06-14T22:00:00"> - <samlp:Issuer>me</samlp:Issuer> + content = '''<samlp:LogoutRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="xxxx" Version="2.0" IssueInstant="2010-06-14T22:00:00"> + <saml:Issuer>me</saml:Issuer> <samlp:SessionIndex>id1</samlp:SessionIndex> <samlp:SessionIndex>id2</samlp:SessionIndex> <samlp:SessionIndex>id3</samlp:SessionIndex> @@ -461,8 +461,8 @@ class LogoutTestCase(unittest.TestCase): node = lasso.Samlp2LogoutRequest.newFromXmlNode(content) assert isinstance(node, lasso.Samlp2LogoutRequest) - assert node.sessionIndex == 'id3' - assert node.sessionIndexes == ('id1', 'id2', 'id3') + assert node.sessionIndex == 'id1' + assert node.sessionIndexes == ('id2', 'id3', 'id1') serverSuite = unittest.makeSuite(ServerTestCase, 'test') loginSuite = unittest.makeSuite(LoginTestCase, 'test') |