summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorEmmanuel Raviart <eraviart@entrouvert.com>2005-01-14 11:30:42 +0000
committerEmmanuel Raviart <eraviart@entrouvert.com>2005-01-14 11:30:42 +0000
commit264eec11af6fdf758a8b37cabb46e50c7838da02 (patch)
tree63d03500ff4e9c811db159187a614447b0aa3861 /python
parentb5265e457e9adf9eee7d40668c5e0a12adffa8cb (diff)
downloadlasso-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-xpython/tests/profiles_tests.py16
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):