Small fix of adding role to the user
Made a small fix of adding role to the user: setting clear
variables. In the corner case when the 'admin' user is
not present, or it is has other username, or the domain is
different, the tests tried to find the only "admin" user in
the default domain only.
Also, there is a couple of minor fixes according to the PEP8
codestyle.
Related-PROD: PROD-36943
Change-Id: Ic891c4b54479adf85f88081d742cb7af45fc4639
diff --git a/tests/test_glance.py b/tests/test_glance.py
index 7313fdd..85d070d 100644
--- a/tests/test_glance.py
+++ b/tests/test_glance.py
@@ -19,7 +19,7 @@
"""
try:
to(value)
- except:
+ except BaseException:
return False
return True