37af2d70f9
Infra team has indicated that tearDown methods should be replaced with addCleanup in unit tests. The reason is that all addCleanup methods will be executed even if one of them fails, while a failure in tearDown method can leave the rest of the tearDown un-executed, which can leave stale state laying around. Moreover, tearDown methods won't run if an exception raises in setUp method, while addCleanup will run in such case. So, we should replace tearDown with addCleanup methods. Change-Id: I3d16954ef7e2fd229f779d193f24ac01d1d2f641 Closes-Bug: #1476976 |
||
---|---|---|
.. | ||
__init__.py | ||
test_magnum_python_client.py | ||
test_templates.py |