summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
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):