From c0d2b1566622c65718ba0317235e512eb7c94c7d Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Fri, 23 Jul 2004 17:02:11 +0000 Subject: Added Java LassoUser.getAuthenticationMethod Python method User.get_authentication_method argument is now optional. Use of this method in non-regression tests. --- python/tests/login_tests.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'python/tests') diff --git a/python/tests/login_tests.py b/python/tests/login_tests.py index b97652f8..061fede5 100644 --- a/python/tests/login_tests.py +++ b/python/tests/login_tests.py @@ -139,10 +139,11 @@ class LoginTestCase(unittest.TestCase): self.failUnlessEqual(spLoginContext.nameIdentifier, nameIdentifier) # The user doesn't have any federation yet. self.failUnlessEqual(spLoginContext.create_user(None), 0) - spUserContextDump = spLoginContext.user.dump() + spUserContext = spLoginContext.user + self.failUnless(spUserContext) + spUserContextDump = spUserContext.dump() self.failUnless(spUserContextDump) - authenticationMethod = spLoginContext.response.get_child( - "AuthenticationStatement").get_attr_value("AuthenticationMethod") + authenticationMethod = spUserContext.get_authentication_method() self.failUnlessEqual(authenticationMethod, lasso.samlAuthenticationMethodPassword) # Service provider logout. -- cgit