diff options
Diffstat (limited to 'tests/utils.py')
-rw-r--r-- | tests/utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/utils.py b/tests/utils.py index ea6aeb3..570c2ea 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -16,11 +16,13 @@ from httplib import HTTPException from eventlet import Timeout, sleep -def fake_get_keystoneclient_2_0(os_options): +def fake_get_keystoneclient_2_0(os_options, exc=None): def fake_get_keystoneclient_2_0(auth_url, user, key, actual_os_options): + if exc: + raise exc('test') if actual_os_options != os_options: return "", None return ("http://url/", "token") |