diff options
author | Emmanuel Raviart <eraviart@entrouvert.com> | 2005-01-14 11:30:42 +0000 |
---|---|---|
committer | Emmanuel Raviart <eraviart@entrouvert.com> | 2005-01-14 11:30:42 +0000 |
commit | 264eec11af6fdf758a8b37cabb46e50c7838da02 (patch) | |
tree | 63d03500ff4e9c811db159187a614447b0aa3861 /python | |
parent | b5265e457e9adf9eee7d40668c5e0a12adffa8cb (diff) | |
download | lasso-264eec11af6fdf758a8b37cabb46e50c7838da02.tar.gz lasso-264eec11af6fdf758a8b37cabb46e50c7838da02.tar.xz lasso-264eec11af6fdf758a8b37cabb46e50c7838da02.zip |
Added a new test that generates a segfault in new_from_soap.
Diffstat (limited to 'python')
-rwxr-xr-x | python/tests/profiles_tests.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/python/tests/profiles_tests.py b/python/tests/profiles_tests.py index 00615a8e..3b0b2a6f 100755 --- a/python/tests/profiles_tests.py +++ b/python/tests/profiles_tests.py @@ -297,6 +297,22 @@ class LoginTestCase(unittest.TestCase): login.request.protocolProfile = lasso.libProtocolProfileBrwsArt self.failUnlessEqual(login.request.protocolProfile, lasso.libProtocolProfileBrwsArt) + def test02(self): + """SP login; testing processing of an empty Response.""" + + lassoServer = lasso.Server( + os.path.join(dataDir, 'sp1-la/metadata.xml'), + os.path.join(dataDir, 'sp1-la/private-key-raw.pem'), + None, + os.path.join(dataDir, 'sp1-la/certificate.pem')) + lassoServer.addProvider( + lasso.providerRoleIdp, + os.path.join(dataDir, 'idp1-la/metadata.xml'), + os.path.join(dataDir, 'idp1-la/public-key.pem'), + os.path.join(dataDir, 'idp1-la/certificate.pem')) + login = lasso.Login(lassoServer) + login.processResponseMsg('') + class LogoutTestCase(unittest.TestCase): def test01(self): |