commit | a3ffedfb60379f6f67a62a6bbc9546da2bd71107 | [log] [tgz] |
---|---|---|
author | Jordan Pittier <jordan.pittier@scality.com> | Mon May 09 16:25:41 2016 +0200 |
committer | Jordan Pittier <jordan.pittier@scality.com> | Mon May 09 16:25:41 2016 +0200 |
tree | 6ffbdb4ef538a1b3afad82867810bdd114fb5508 | |
parent | 87e64c4af4f5b7d28d8cdfe14f8e7c402581f9f2 [diff] |
Add cleanup in identity/test_users_negative.py If the assertRaises(...) fails (e.g if an exception is not raised) then the test will exit right away and the method call to reset the environment is not executed. We should use the addCleanup(...) mechanism to be sure that the cleanup happens regardless of the status of the test. Change-Id: I43cec136691bb1b39b01756a2a4139abf3d2d51b