From 14dd064dd1a5e9fead77f76b508e85dd7f719d99 Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Fri, 14 Jan 2005 14:47:49 +0000 Subject: check for correct exception --- python/tests/profiles_tests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'python') 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): -- cgit