summaryrefslogtreecommitdiffstats
path: root/python/tests/errorchecking_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests/errorchecking_tests.py')
-rw-r--r--python/tests/errorchecking_tests.py12
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