diff options
| author | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-07-30 21:11:17 +0000 |
|---|---|---|
| committer | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-07-30 21:11:17 +0000 |
| commit | d4c4d75b0d61807700da7b0d8c9a9b8fd7979917 (patch) | |
| tree | 676cb109cea5175706f283d13795f67cd16781f7 /python | |
| parent | 201afd98e355dee1aece1ff8883d78c006d071ea (diff) | |
| download | lasso-d4c4d75b0d61807700da7b0d8c9a9b8fd7979917.tar.gz lasso-d4c4d75b0d61807700da7b0d8c9a9b8fd7979917.tar.xz lasso-d4c4d75b0d61807700da7b0d8c9a9b8fd7979917.zip | |
Some update to python login_tests. Some bugs remain.
Diffstat (limited to 'python')
| -rw-r--r-- | python/tests/login_tests.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/python/tests/login_tests.py b/python/tests/login_tests.py index b5d30216..43cf846b 100644 --- a/python/tests/login_tests.py +++ b/python/tests/login_tests.py @@ -144,12 +144,16 @@ class LoginTestCase(unittest.TestCase): self.failUnlessEqual(spLoginContext.process_response_msg(soapResponseMsg), 0) self.failUnlessEqual(spLoginContext.nameIdentifier, nameIdentifier) # The user doesn't have any federation yet. - self.failUnlessEqual(spLoginContext.create_identity(None), 0) - spIdentityContext = spLoginContext.identity + self.failUnlessEqual(spLoginContext.accept_sso(), 0) + spIdentityContext = spLoginContext.get_identity() self.failUnless(spIdentityContext) spIdentityContextDump = spIdentityContext.dump() self.failUnless(spIdentityContextDump) - authenticationMethod = spIdentityContext.get_authentication_method() + spSessionContext = spLoginContext.get_session() + self.failUnless(spSessionContext) + spSessionContextDump = spSessionContext.dump() + self.failUnless(spSessionContextDump) + authenticationMethod = spSessionContext.get_authentication_method() self.failUnlessEqual(authenticationMethod, lasso.samlAuthenticationMethodPassword) # Service provider logout. |
