magnum/magnum/tests/functional
Hua Wang 37af2d70f9 Replace tearDown with addCleanup in magnum unit tests
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
2015-07-20 21:47:10 +08:00
..
__init__.py Convert to new DevStack plugin model for functional testing 2015-04-02 21:14:20 -04:00
test_magnum_python_client.py Replace tearDown with addCleanup in magnum unit tests 2015-07-20 21:47:10 +08:00
test_templates.py Add template definition of Mesos bay 2015-07-15 10:56:13 -04:00