From 264eec11af6fdf758a8b37cabb46e50c7838da02 Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Fri, 14 Jan 2005 11:30:42 +0000 Subject: Added a new test that generates a segfault in new_from_soap. --- python/tests/profiles_tests.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'python/tests') 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): -- cgit