summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorEmmanuel Raviart <eraviart@entrouvert.com>2004-07-25 19:29:26 +0000
committerEmmanuel Raviart <eraviart@entrouvert.com>2004-07-25 19:29:26 +0000
commit5c73b6167694372c9722401c3f05c8df15382065 (patch)
treefb41bdb13a6a94345fef83151d92296db6ff11cb /python
parent614ac78aa0bda9d7fcf1ef534bdf069777b84065 (diff)
downloadlasso-5c73b6167694372c9722401c3f05c8df15382065.tar.gz
lasso-5c73b6167694372c9722401c3f05c8df15382065.tar.xz
lasso-5c73b6167694372c9722401c3f05c8df15382065.zip
Java unit test is again similar to Python.
Corrected Java binding to pass the unit test both with Kaffe and Sun JRE. Added a small new test in Python unit test.
Diffstat (limited to 'python')
-rw-r--r--python/tests/login_tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/tests/login_tests.py b/python/tests/login_tests.py
index 948fd372..137ef2ad 100644
--- a/python/tests/login_tests.py
+++ b/python/tests/login_tests.py
@@ -91,6 +91,7 @@ class LoginTestCase(unittest.TestCase):
spLoginContext = lasso.Login.new(spContext)
self.failUnlessEqual(spLoginContext.init_authn_request(
"https://identity-provider:1998/liberty-alliance/metadata"), 0)
+ self.failUnlessEqual(spLoginContext.request_type, lasso.messageTypeAuthnRequest)
spLoginContext.request.set_isPassive(False)
spLoginContext.request.set_nameIDPolicy(lasso.libNameIDPolicyTypeFederated)
spLoginContext.request.set_consent(lasso.libConsentObtained)