cinder/cinder/tests/db
Julia Varlamova 6ee7901df9 Replace tearDown with addCleanup - Part 4
Infra team has indicated that tearDown should not be used and should
be replaced with addCleanup in all places.

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.

This patch replaces tearDown with addCleanup or removes redundant tearDown
methods in cinder unit tests.

Implements blueprint replace-teardown-with-addcleanup

Change-Id: I6947eafa419ed7dda53582484090cd5210274f73
2014-04-15 17:46:08 +04:00
..
__init__.py Remove vim header 2013-12-30 18:53:02 -06:00
fakes.py Remove vim header 2013-12-30 18:53:02 -06:00
test_finish_migration.py Replace tearDown with addCleanup - Part 4 2014-04-15 17:46:08 +04:00
test_name_id.py Replace tearDown with addCleanup - Part 4 2014-04-15 17:46:08 +04:00
test_qos_specs.py Replace tearDown with addCleanup - Part 4 2014-04-15 17:46:08 +04:00
test_transfers.py Replace tearDown with addCleanup - Part 4 2014-04-15 17:46:08 +04:00