diff options
author | Frederic Peters <fpeters@entrouvert.com> | 2006-03-08 11:02:42 +0000 |
---|---|---|
committer | Frederic Peters <fpeters@entrouvert.com> | 2006-03-08 11:02:42 +0000 |
commit | 18358d49c39995dd6d8cff8feac3e556bf08b1e0 (patch) | |
tree | c76609a6dd958ad447dffc01053ccc3fd3460ba1 /python/tests/errorchecking_tests.py | |
parent | 7e81f6bc6684f5756d5ef126fe8a516932ddc664 (diff) | |
download | lasso-18358d49c39995dd6d8cff8feac3e556bf08b1e0.tar.gz lasso-18358d49c39995dd6d8cff8feac3e556bf08b1e0.tar.xz lasso-18358d49c39995dd6d8cff8feac3e556bf08b1e0.zip |
fixing python test.
Diffstat (limited to 'python/tests/errorchecking_tests.py')
-rw-r--r-- | python/tests/errorchecking_tests.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/python/tests/errorchecking_tests.py b/python/tests/errorchecking_tests.py index 3b744e84..859965d7 100644 --- a/python/tests/errorchecking_tests.py +++ b/python/tests/errorchecking_tests.py @@ -71,8 +71,9 @@ class ErrorCheckingTestCase(unittest.TestCase): login = lasso.Login(server) try: login.processAuthnRequestMsg("") - except lasso.Error: - pass + except lasso.Error, error: + if error[0] != -407: + raise def test04(self): server = lasso.Server( @@ -81,8 +82,11 @@ class ErrorCheckingTestCase(unittest.TestCase): None, os.path.join(dataDir, 'sp1-la/certificate.pem')) logout = lasso.Logout(server) - logout.initRequest(None, lasso.HTTP_METHOD_REDIRECT) - logout.buildRequestMsg() + try: + logout.initRequest(None, lasso.HTTP_METHOD_REDIRECT) + except lasso.Error, error: + if error[0] != -418: + raise |