"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/tests/unit/utils.py" between
keystone-17.0.0.tar.gz and keystone-18.0.0.tar.gz

About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Victoria" series (latest release).

utils.py  (keystone-17.0.0):utils.py  (keystone-18.0.0)
skipping to change at line 84 skipping to change at line 84
bugstr = " (BugID " + bug + ")" bugstr = " (BugID " + bug + ")"
else: else:
bugstr = "" bugstr = ""
def _wip(f): def _wip(f):
@functools.wraps(f) @functools.wraps(f)
def run_test(*args, **kwargs): def run_test(*args, **kwargs):
__e = None __e = None
try: try:
f(*args, **kwargs) f(*args, **kwargs)
except Exception as __e: except Exception as __e: # noqa F841
if (expected_exception != Exception and if (expected_exception != Exception and
not isinstance(__e, expected_exception)): not isinstance(__e, expected_exception)):
raise AssertionError( raise AssertionError(
'Work In Progress Test Failed%(bugstr)s with ' 'Work In Progress Test Failed%(bugstr)s with '
'unexpected exception. Expected "%(expected)s" ' 'unexpected exception. Expected "%(expected)s" '
'got "%(exception)s": %(message)s ' % 'got "%(exception)s": %(message)s ' %
{'message': message, 'bugstr': bugstr, {'message': message, 'bugstr': bugstr,
'expected': expected_exception.__class__.__name__, 'expected': expected_exception.__class__.__name__,
'exception': __e.__class__.__name__}) 'exception': __e.__class__.__name__})
# NOTE(notmorgan): We got the expected exception we can safely # NOTE(notmorgan): We got the expected exception we can safely
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)