summaryrefslogtreecommitdiffstats
path: root/python/tests/errorchecking_tests.py
diff options
context:
space:
mode:
authorEmmanuel Raviart <eraviart@entrouvert.com>2004-08-20 00:13:35 +0000
committerEmmanuel Raviart <eraviart@entrouvert.com>2004-08-20 00:13:35 +0000
commitc4344d4b1b3d77f2ef7594c217c298661a27dd5e (patch)
tree4d2636f3e07b82aa0a679f30a159cfd1fc277e8d /python/tests/errorchecking_tests.py
parent31fdd0be5742c82d8ff67a965d49b7b9934d9af4 (diff)
downloadlasso-c4344d4b1b3d77f2ef7594c217c298661a27dd5e.tar.gz
lasso-c4344d4b1b3d77f2ef7594c217c298661a27dd5e.tar.xz
lasso-c4344d4b1b3d77f2ef7594c217c298661a27dd5e.zip
Updated Python high-level binding and tests.
May all the lights be green!
Diffstat (limited to 'python/tests/errorchecking_tests.py')
-rw-r--r--python/tests/errorchecking_tests.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/python/tests/errorchecking_tests.py b/python/tests/errorchecking_tests.py
index ab15bd69..adf2ac78 100644
--- a/python/tests/errorchecking_tests.py
+++ b/python/tests/errorchecking_tests.py
@@ -37,8 +37,6 @@ import lasso
class ErrorCheckingTestCase(unittest.TestCase):
def DISABLEDtest01(self):
- # the user should call lasso.Login.new(); but what if it doesn't ?
- # An exception should be raised; the program should not segfault.
try:
lasso.Login(None).msg_url
except:
@@ -54,13 +52,13 @@ class ErrorCheckingTestCase(unittest.TestCase):
def test03(self):
# This time; we got something wrong as query string; we pass it to
# init_from_authn_request_msg; surely it shouldn't segfault
- server = lasso.Server.new(
+ server = lasso.Server(
'../../tests/data/idp1-la/metadata.xml',
None, # '../../tests/data/idp1-la/public-key.pem' is no more used
'../../tests/data/idp1-la/private-key-raw.pem',
'../../tests/data/idp1-la/certificate.pem',
lasso.signatureMethodRsaSha1)
- login = lasso.Login.new(server)
+ login = lasso.Login(server)
try:
login.init_from_authn_request_msg("", lasso.httpMethodRedirect)
except: