diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2005-01-14 14:47:49 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2005-01-14 14:47:49 +0000 |
| commit | 14dd064dd1a5e9fead77f76b508e85dd7f719d99 (patch) | |
| tree | ec6d4db7d32d63188a295add65feb2c081e45157 /python | |
| parent | 677974990db9ba54b5526b0304c7671c7dcb2043 (diff) | |
| download | lasso-14dd064dd1a5e9fead77f76b508e85dd7f719d99.tar.gz lasso-14dd064dd1a5e9fead77f76b508e85dd7f719d99.tar.xz lasso-14dd064dd1a5e9fead77f76b508e85dd7f719d99.zip | |
check for correct exception
Diffstat (limited to 'python')
| -rwxr-xr-x | python/tests/profiles_tests.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/python/tests/profiles_tests.py b/python/tests/profiles_tests.py index 3b0b2a6f..bc9a4d26 100755 --- a/python/tests/profiles_tests.py +++ b/python/tests/profiles_tests.py @@ -311,7 +311,11 @@ class LoginTestCase(unittest.TestCase): os.path.join(dataDir, 'idp1-la/public-key.pem'), os.path.join(dataDir, 'idp1-la/certificate.pem')) login = lasso.Login(lassoServer) - login.processResponseMsg('') + try: + login.processResponseMsg('') + except lasso.Error, error: + if error[0] != lasso.PROFILE_ERROR_INVALID_MSG: + raise class LogoutTestCase(unittest.TestCase): |
