diff options
| author | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-08-28 21:37:18 +0000 |
|---|---|---|
| committer | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-08-28 21:37:18 +0000 |
| commit | 2ca1008182b5767b0715f9c1fe0deab3d0d2e8a6 (patch) | |
| tree | 3d67453696feef0f31d5bddb10570154a4fe3f4b /python/tests | |
| parent | 2988cacb8d34cba4c8c2479996a4d672ed6bce45 (diff) | |
| download | lasso-2ca1008182b5767b0715f9c1fe0deab3d0d2e8a6.tar.gz lasso-2ca1008182b5767b0715f9c1fe0deab3d0d2e8a6.tar.xz lasso-2ca1008182b5767b0715f9c1fe0deab3d0d2e8a6.zip | |
SWIG now produces high-level bindings.
(python/Makefile.am needs some cleaning IMHO, but I don't understant it).
Diffstat (limited to 'python/tests')
| -rwxr-xr-x | python/tests/profiles_tests.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/python/tests/profiles_tests.py b/python/tests/profiles_tests.py index 4e367ad7..6aba8e80 100755 --- a/python/tests/profiles_tests.py +++ b/python/tests/profiles_tests.py @@ -88,7 +88,6 @@ class LoginTestCase(unittest.TestCase): os.path.join(dataDir, 'idp1-la/certificate.pem')) login = lasso.Login(lassoServer) login.init_authn_request(lasso.httpMethodRedirect) - self.failUnlessEqual(login.request_type, lasso.messageTypeAuthnRequest) login.authn_request login.authn_request.protocolProfile = lasso.libProtocolProfileBrwsArt @@ -110,8 +109,9 @@ class LogoutTestCase(unittest.TestCase): logout = lasso.Logout(lassoServer, lasso.providerTypeSp) try: logout.init_request() - except lasso.Error, error: - if error.code != -1: + except RuntimeError, error: + errorCode = int(error.args[0].split(' ', 1)[0]) + if errorCode != -1: raise else: self.fail('logout.init_request without having set identity before should fail') @@ -151,8 +151,8 @@ class DefederationTestCase(unittest.TestCase): # The process_notification_msg should failt but not abort. try: defederation.process_notification_msg('nonLibertyQuery=1', lasso.httpMethodRedirect) - except lasso.Error, error: - pass + except RuntimeError, error: + errorCode = int(error.args[0].split(' ', 1)[0]) else: self.fail('Defederation process_notification_msg should have failed.') |
